mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 17:25:32 +00:00
13 lines
269 B
Bash
Executable File
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
|