diff --git a/testing/sisyphus/bin/create-profile.sh b/testing/sisyphus/bin/create-profile.sh index 126d9cc42444..309ce05d63bc 100755 --- a/testing/sisyphus/bin/create-profile.sh +++ b/testing/sisyphus/bin/create-profile.sh @@ -121,11 +121,16 @@ fi echo "creating profile $profilename in directory $directory" -if ! $TEST_DIR/bin/timed_run.py ${TEST_STARTUP_TIMEOUT} "-" \ +tries=1 +while ! $TEST_DIR/bin/timed_run.py ${TEST_STARTUP_TIMEOUT} "-" \ $EXECUTABLE_DRIVER \ - $executable -CreateProfile "$profilename $directoryospath"; then - error "creating profile $directory" $LINENO -fi + $executable -CreateProfile "$profilename $directoryospath"; do + let tries=tries+1 + if [ "$tries" -gt $TEST_STARTUP_TRIES ]; then + error "Failed to create profile $directory Exiting..." $LINENO + fi + sleep 30 +done if [[ -n $profiletemplate ]]; then if [[ ! -d $profiletemplate ]]; then