tests: remove --test=2 from compose_sanity

This ensures that after canceling a compose, the next one can be finished.

(cherry picked from commit 6924571d95)

Related: rhbz#1789451
This commit is contained in:
Jakub Rusz 2020-01-15 14:04:26 +01:00 committed by Alexander Todorov
parent 06f09b2335
commit 4d28da3818

View File

@ -32,6 +32,12 @@ rlJournalStart
else else
rlFail "Compose UUID is empty!" rlFail "Compose UUID is empty!"
fi fi
# check if anaconda is really running
until ps -axo comm,pid | grep '^anaconda'; do
sleep 10
rlLogInfo "Waiting for anaconda to start running..."
done;
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest "cancel compose" rlPhaseStartTest "cancel compose"
@ -40,7 +46,7 @@ rlJournalStart
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest "compose start again" rlPhaseStartTest "compose start again"
UUID=`$CLI --test=2 compose start example-http-server tar` UUID=`$CLI compose start example-http-server tar`
rlAssertEquals "exit code should be zero" $? 0 rlAssertEquals "exit code should be zero" $? 0
UUID=`echo $UUID | cut -f 2 -d' '` UUID=`echo $UUID | cut -f 2 -d' '`