From cad1deb2c6afcf6d276d02a492492682cbc34a9e Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 22 Jan 2021 11:50:39 +0100 Subject: [PATCH] Allow to run single integration tests --- tests/integration/run.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/integration/run.sh b/tests/integration/run.sh index cd287c9b..87495f78 100755 --- a/tests/integration/run.sh +++ b/tests/integration/run.sh @@ -12,7 +12,16 @@ popd export PATH=$ROOT_DIR/tests/integration/bin/:$PATH -for script in $(ls "$ROOT_DIR/tests/integration/" | grep '^[0-9]*_.*.sh'); do - echo "Executing script '$script'." - $ROOT_DIR/tests/integration/$script -done \ No newline at end of file +if [ -z "$SINGLE_TEST" ]; then + + for script in $(ls "$ROOT_DIR/tests/integration/" | grep '^[0-9]*_.*.sh'); do + echo "Executing test '$script'." + $ROOT_DIR/tests/integration/$script + done + +else + + echo "Executing test '$SINGLE_TEST'." + $ROOT_DIR/tests/integration/$SINGLE_TEST + +fi \ No newline at end of file