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"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
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 ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
sleep 30
|
sleep 30
|
||||||
done;
|
done;
|
||||||
|
@ -66,7 +66,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
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 ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
sleep 30
|
sleep 30
|
||||||
done;
|
done;
|
||||||
|
@ -76,7 +76,7 @@ __EOF__
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
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 ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
sleep 30
|
sleep 30
|
||||||
done;
|
done;
|
||||||
|
@ -97,7 +97,7 @@ __EOF__
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
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 ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
sleep 30
|
sleep 30
|
||||||
done;
|
done;
|
||||||
|
@ -25,7 +25,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 10
|
sleep 10
|
||||||
rlLogInfo "Waiting for compose to finish ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
done;
|
done;
|
||||||
|
@ -21,7 +21,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStart "compose finished"
|
rlPhaseStart "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 10
|
sleep 10
|
||||||
rlLogInfo "Waiting for compose to finish..."
|
rlLogInfo "Waiting for compose to finish..."
|
||||||
done
|
done
|
||||||
|
@ -26,7 +26,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 20
|
sleep 20
|
||||||
rlLogInfo "Waiting for compose to finish ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
done;
|
done;
|
||||||
|
@ -25,7 +25,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 10
|
sleep 10
|
||||||
rlLogInfo "Waiting for compose to finish ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
done;
|
done;
|
||||||
|
@ -54,7 +54,7 @@ __EOF__
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 20
|
sleep 20
|
||||||
rlLogInfo "Waiting for compose to finish ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
done;
|
done;
|
||||||
|
@ -29,7 +29,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartTest "compose image"
|
rlPhaseStartTest "compose image"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 5
|
sleep 5
|
||||||
rlLogInfo "Waiting for compose to finish ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
done;
|
done;
|
||||||
|
@ -23,7 +23,7 @@ rlJournalStart
|
|||||||
|
|
||||||
rlPhaseStartTest "compose finished"
|
rlPhaseStartTest "compose finished"
|
||||||
if [ -n "$UUID" ]; then
|
if [ -n "$UUID" ]; then
|
||||||
until $CLI compose info $UUID | grep FINISHED; do
|
until $CLI compose info $UUID | grep 'FINISHED\|FAILED'; do
|
||||||
sleep 10
|
sleep 10
|
||||||
rlLogInfo "Waiting for compose to finish ..."
|
rlLogInfo "Waiting for compose to finish ..."
|
||||||
done;
|
done;
|
||||||
|
Loading…
Reference in New Issue
Block a user