From ebbdcb187fab809e2a284873daffda810384ec1c Mon Sep 17 00:00:00 2001 From: Maciej Sypien Date: Sat, 21 Sep 2024 10:50:10 +0200 Subject: [PATCH] fix: update exec of multiple scripts for linux --- tests/run_all_linux_tests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/run_all_linux_tests.sh b/tests/run_all_linux_tests.sh index 56f8a6f..7dead6b 100755 --- a/tests/run_all_linux_tests.sh +++ b/tests/run_all_linux_tests.sh @@ -1,7 +1,13 @@ #!/usr/bin/env bash +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + main() { - for test in $(compgen -A function | grep "^test_linux_"); do "$test"; done + set -e # exit on error + _files=$(find "$CURRENT_DIR" -name "test_linux_*" -type f) + for test in $_files; do + bash -c "$test" + done } main "$@"