wesnoth/utils/travis/test_wrapper.sh
2014-07-05 10:51:25 -04:00

13 lines
269 B
Bash
Executable File

#!/bin/bash
COUNTER=10
./test
ERRORCODE=$?
while [ $COUNTER -gt 0 -a $ERRORCODE -eq 200 ]; do
echo "test gave error code 200 (segfault).. trying again."
COUNTER=$((COUNTER-1))
./test
ERRORCODE=$?
done
export TEST_ERROR_CODE="$ERRORCODE"
exit $ERRORCODE