tests: remove --test=2 from compose_sanity
This will ensure that the compose_sanity test also covers a scenario described in rhbz#1788501
This commit is contained in:
parent
bae3cb06bc
commit
6924571d95
@ -42,15 +42,22 @@ 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"
|
||||||
rlRun -t -c "$CLI compose cancel $UUID"
|
rlRun -t -c "$CLI compose cancel $UUID"
|
||||||
rlRun -t -c "$CLI compose info $UUID" 1 "compose is canceled"
|
rlRun -t -c "$CLI compose info $UUID" 1 "compose is canceled"
|
||||||
|
rlAssertNotExists "/var/run/anaconda.pid"
|
||||||
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' '`
|
||||||
|
Loading…
Reference in New Issue
Block a user