Skip to content

Commit

Permalink
Increase retry count and add grep printing
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieobject committed Mar 2, 2024
1 parent 121e17b commit 19a3884
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions script/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

retries=0
until [ $retries -ge 5 ]
# Given the resource limitations and external dependencies for the test suite,
# a retry count of at least 10 is needed.
until [ $retries -ge 10 ]
do
echo "Running Test Suite...."
swift test -v
echo "Running Test Suite Attempt ($retries)...."
swift test -v | grep -E "Test Case|XCTAssert|failures"

exit_code=$?

Expand All @@ -13,7 +15,7 @@ do
break
else
((retries=retries+1))
echo "Test Suite Failed. Retrying Attempt ($retries) ..."
echo "Test Suite Failed."
fi
done

Expand Down

0 comments on commit 19a3884

Please sign in to comment.