From: Bartosz Golaszewski Date: Tue, 6 Aug 2019 15:52:56 +0000 (+0200) Subject: tools: tests: pass command-line arguments to the underlying bats script X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d5f60270f4bb7fdcb6c87fe20ef2267c3431b873;p=qemu-gpiodev%2Flibgpiod.git tools: tests: pass command-line arguments to the underlying bats script Command-line arguments need to be forwarded to the bats test-suite if we want to control bats' execution. Fixes: f52e12eafd17 ("tools: tests: run the bats script indirectly from a shell script") Signed-off-by: Bartosz Golaszewski --- diff --git a/tools/gpio-tools-test.sh b/tools/gpio-tools-test.sh index be4f492..f12f9ec 100755 --- a/tools/gpio-tools-test.sh +++ b/tools/gpio-tools-test.sh @@ -55,4 +55,4 @@ fi BATS_PATH=$(which bats) -exec $BATS_PATH $SOURCE_DIR/$BATS_SCRIPT +exec $BATS_PATH $SOURCE_DIR/$BATS_SCRIPT ${1+"$@"}