bug 466947 - Sisyphus - retry profile creation on failure.

This commit is contained in:
Bob Clary 2008-11-27 02:28:58 -08:00
parent d1d81caf63
commit 0549ead97f

View File

@ -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