[toranj] change start.sh to remove variable check to retry failed test (#4761)

This commit changes the `start.sh` script to remove the check for the
environment variable (which is specific to travis) before allowing
retry of failed tests. This should help with robustness of the tests
on GitHub Actions.
This commit is contained in:
Abtin Keshavarzian
2020-03-30 13:32:39 -07:00
committed by GitHub
parent eb5b3a41a9
commit 8328aff1d9
+7 -9
View File
@@ -58,15 +58,13 @@ run() {
return
fi
# On Travis, we allow a failed test to be retried up to 3 attempts.
if [ "$BUILD_TARGET" = "toranj-test-framework" ]; then
if [ "$counter" -lt 2 ]; then
counter=$((counter+1))
echo Attempt $counter running "$1" failed. Trying again.
cleanup
sleep 10
continue
fi
# We allow a failed test to be retried up to 3 attempts.
if [ "$counter" -lt 2 ]; then
counter=$((counter+1))
echo Attempt $counter running "$1" failed. Trying again.
cleanup
sleep 10
continue
fi
echo " *** TEST FAILED"