tools: tests: pass command-line arguments to the underlying bats script
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 6 Aug 2019 15:52:56 +0000 (17:52 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 6 Aug 2019 15:59:35 +0000 (17:59 +0200)
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 <bgolaszewski@baylibre.com>
tools/gpio-tools-test.sh

index be4f492e3e67a270ec7248ce29985a40a552662d..f12f9eced366d6c6c3c53cfcf16071ff8b28ee05 100755 (executable)
@@ -55,4 +55,4 @@ fi
 
 BATS_PATH=$(which bats)
 
-exec $BATS_PATH $SOURCE_DIR/$BATS_SCRIPT
+exec $BATS_PATH $SOURCE_DIR/$BATS_SCRIPT ${1+"$@"}