mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 18:14:13 +00:00

This is to combat what are apparently transient timeout faults where the travis workers choke on running ./test and never actually start the process... it seems not even to get to the "running 140 tests" message when it ends with error code 200.
12 lines
247 B
Bash
Executable File
12 lines
247 B
Bash
Executable File
#!/bin/bash
|
|
COUNTER=10
|
|
./test
|
|
ERRORCODE=$?
|
|
while [ $COUNTER -gt 0 -a $ERRORCODE -eq 200 ]; do
|
|
echo "test apparently timed out with error code 200... trying again."
|
|
let COUNTER = COUNTER - 1
|
|
./test
|
|
ERRORCODE=$?
|
|
done
|
|
exit $ERRORCODE
|