Skip to content

Commit

Permalink
count-fail-ratio: Fix commands with quoted arguments
Browse files Browse the repository at this point in the history
Same as in retry.
  • Loading branch information
okurz committed Jan 16, 2025
1 parent 2d4e170 commit 16127e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion count-fail-ratio
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare -a times=()
for ((i=start; i <= runs; i++)); do
echo "## Run $i"
if [ "$timing" = 1 ]; then t_run_start=$(date +%s%N); fi
$* || fails=$((fails+1))
"$@" || fails=$((fails+1))
if [ "$timing" = 1 ]; then
t_run_end=$(date +%s%N)
runtime=$(( (t_run_end - t_run_start) / 1000000 ))
Expand Down

0 comments on commit 16127e6

Please sign in to comment.