Skip to content

Commit 34df5ae

Browse files
authored
Fix test-canisters script when no arguments (#2686)
1 parent cfe7308 commit 34df5ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/test-canisters.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ fi
2222

2323
# Parse arguments for --no-build flag
2424
NO_BUILD=false
25-
args=("$@")
2625
filtered_args=()
27-
for arg in "${args[@]}"; do
26+
for arg in "$@"; do
2827
if [ "$arg" != "--no-build" ]; then
2928
filtered_args+=("$arg")
3029
else
@@ -70,4 +69,4 @@ fi
7069
# Run tests
7170

7271
echo "Running integration tests."
73-
cargo test "${filtered_args[@]}"
72+
cargo test "${filtered_args[@]:-}"

0 commit comments

Comments
 (0)