From 34e703fdc468b4b2fc6d3af1883183767a38636e Mon Sep 17 00:00:00 2001 From: Ryo Kawaguchi Date: Thu, 18 Apr 2024 23:35:50 +0900 Subject: [PATCH] Fix positional argument parsing --- docker-tests/run-docker-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-tests/run-docker-tests.sh b/docker-tests/run-docker-tests.sh index 1b63f69..ca7a8c3 100755 --- a/docker-tests/run-docker-tests.sh +++ b/docker-tests/run-docker-tests.sh @@ -36,6 +36,8 @@ while [[ $# -gt 0 ]]; do ;; *) TEST_FILTER+=("$1") + shift + ;; esac done @@ -200,9 +202,7 @@ test_simultaneous_redemption() { # Run tests (functions prefixed with test_) in alphabetical order. # Optional filter provided by positional arguments is applied. for func in $(declare -F | awk '{print $3}'); do - echo '-'$func if [[ "$func" =~ ^test_ ]]; then - echo '='$func if [ ${#TEST_FILTER[@]} -eq 0 ] || [[ "${TEST_FILTER[*]}" =~ "$func" ]]; then $func fi