Skip to content

Commit

Permalink
Fix test-canisters script when no arguments (#2686)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner authored Nov 6, 2024
1 parent cfe7308 commit 34df5ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/test-canisters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,4 +69,4 @@ fi
# Run tests

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

0 comments on commit 34df5ae

Please sign in to comment.