From 34df5aeff6be7cb51ac9a08509be348a2a1745ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7=20Muntaner?= Date: Wed, 6 Nov 2024 15:49:39 +0100 Subject: [PATCH] Fix test-canisters script when no arguments (#2686) --- scripts/test-canisters.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/test-canisters.sh b/scripts/test-canisters.sh index 93358a4968..2b2cd464c3 100755 --- a/scripts/test-canisters.sh +++ b/scripts/test-canisters.sh @@ -22,9 +22,8 @@ fi # Parse arguments for --no-build flag NO_BUILD=false -args=("$@") filtered_args=() -for arg in "${args[@]}"; do +for arg in "$@"; do if [ "$arg" != "--no-build" ]; then filtered_args+=("$arg") else @@ -70,4 +69,4 @@ fi # Run tests echo "Running integration tests." -cargo test "${filtered_args[@]}" +cargo test "${filtered_args[@]:-}"