tests: Fail immediately when image build fails
We were checking for composer's FINISHED status only, which meant that when a compose failed, the test ran until it timed out. Check for failed as well. Also, always time out after 30 minutes.
This commit is contained in:
parent
4783f6562f
commit
c261cec33d
@ -81,7 +81,7 @@ __EOF__
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
sleep 30
|
||||
done;
|
||||
|
@ -66,7 +66,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
sleep 30
|
||||
done;
|
||||
|
@ -76,7 +76,7 @@ __EOF__
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
sleep 30
|
||||
done;
|
||||
|
@ -97,7 +97,7 @@ __EOF__
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
sleep 30
|
||||
done;
|
||||
|
@ -25,7 +25,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 10
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
done;
|
||||
|
@ -21,7 +21,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStart "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 10
|
||||
rlLogInfo "Waiting for compose to finish..."
|
||||
done
|
||||
|
@ -26,7 +26,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 20
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
done;
|
||||
|
@ -25,7 +25,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 10
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
done;
|
||||
|
@ -54,7 +54,7 @@ __EOF__
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 20
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
done;
|
||||
|
@ -29,7 +29,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "compose image"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 5
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
done;
|
||||
|
@ -23,7 +23,7 @@ rlJournalStart
|
||||
|
||||
rlPhaseStartTest "compose finished"
|
||||
if [ -n "$UUID" ]; then
|
||||
until $CLI compose info $UUID | grep FINISHED; do
|
||||
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||
sleep 10
|
||||
rlLogInfo "Waiting for compose to finish ..."
|
||||
done;
|
||||
|
Loading…
Reference in New Issue
Block a user