tests: check for failed compose before trying to cancel

This was suggested and added to rhel8-branch so adding it here as well.
This commit is contained in:
Jakub Rusz 2020-01-14 08:43:57 +01:00 committed by Alexander Todorov
parent 887fb6ce35
commit ca876483db

View File

@ -34,6 +34,10 @@ rlJournalStart
until $CLI compose info $UUID | grep 'RUNNING'; do
sleep 20
rlLogInfo "Waiting for compose to start running..."
if $CLI compose info $UUID | grep 'FAILED'; then
rlFail "Compose FAILED!"
break
fi
done;
else
rlFail "Compose UUID is empty!"