Skip to content

Commit 81728ea

Browse files
committed
Avoid zsh reserved status variable in test retry helper
1 parent d8e7c2a commit 81728ea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ci/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ function run_meson_test_with_retry {
9292
for attempt in 1 2; do
9393
echo " > Running ${label} (attempt ${attempt}/2):" "$@" | tee -a "$test_log"
9494
"$@" >> "$test_log"
95-
local status=$?
95+
local exit_code=$?
9696

97-
if [ $status -eq 0 ]; then
97+
if [ $exit_code -eq 0 ]; then
9898
return 0
9999
fi
100100

101101
if [ $attempt -eq 2 ]; then
102-
return $status
102+
return $exit_code
103103
fi
104104

105105
echo " > ${label} failed; retrying once" | tee -a "$test_log"

0 commit comments

Comments
 (0)