mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 12:13:27 +00:00
Implement test retry for Mobile CI (#2281)
This commit is contained in:
parent
475d8bd88c
commit
595172a33a
|
@ -73,6 +73,7 @@ run_maestro_test() {
|
|||
fi
|
||||
|
||||
local i
|
||||
local retry_failed=0
|
||||
local retry_seconds
|
||||
for i in {1..6}; do
|
||||
_maestro_out=''
|
||||
|
@ -111,8 +112,14 @@ run_maestro_test() {
|
|||
# Test failed
|
||||
printf '%s' "$_maestro_out"
|
||||
printf '%s' "$_maestro_err" >&2
|
||||
if [ $retry_failed -eq 0 ]; then
|
||||
retry_failed=1
|
||||
echo "Test $1 failed. Retrying once more in 10 seconds..."
|
||||
sleep 10
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Test $1 failed after 6 retries. Exiting..." >&2
|
||||
|
|
Loading…
Reference in a new issue