Make sure to remove logs before retrying

This commit is contained in:
ZyX 2015-01-09 17:42:20 +03:00
parent 0a8e94d031
commit 9511c45e6f
1 changed files with 5 additions and 0 deletions

View File

@ -181,8 +181,13 @@ do_run_test() {
}
run_test() {
TEST_TYPE="$1"
TEST_CLIENT="$2"
SH="$3"
local attempts=3
while test $attempts -gt 0 ; do
rm -f tests/shell/${SH}.${TEST_TYPE}.${TEST_CLIENT}.log
rm -f tests/shell/${SH}.${TEST_TYPE}.${TEST_CLIENT}.full.log
do_run_test "$@" && return 0
attempts=$(( attempts - 1 ))
done