From 5582e0c8e882420452a9cea3eab67e6b02575ceb Mon Sep 17 00:00:00 2001 From: Kent Gibson Date: Mon, 12 Jun 2023 10:56:42 +0800 Subject: [PATCH] tools: tests: remove implicit run-time dependency on ncurses bats has an implicit depencency on ncurses, as I found when trying to run the tests on a minimal install that lacked ncurses. Rather than make the dependency explicit, force the output formatting to use the TAP format which does not require ncurses. Signed-off-by: Kent Gibson Signed-off-by: Bartosz Golaszewski --- tools/gpio-tools-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gpio-tools-test b/tools/gpio-tools-test index ed39ed5..441ec66 100755 --- a/tools/gpio-tools-test +++ b/tools/gpio-tools-test @@ -54,4 +54,4 @@ modprobe gpio-sim || die "unable to load the gpio-sim module" mountpoint /sys/kernel/config/ > /dev/null 2> /dev/null || \ die "configfs not mounted at /sys/kernel/config/" -exec $BATS_PATH $SOURCE_DIR/$BATS_SCRIPT ${1+"$@"} +exec $BATS_PATH -F tap $SOURCE_DIR/$BATS_SCRIPT ${1+"$@"} -- 2.30.2