From 2ee92b75b0d0bcb79535615d9020453726b97867 Mon Sep 17 00:00:00 2001 From: Jakub Rusz Date: Wed, 15 Jan 2020 14:04:26 +0100 Subject: [PATCH] tests: remove --test=2 from compose_sanity This will ensure that the compose_sanity test also covers a scenario described in rhbz#1788501 --- tests/cli/test_compose_sanity.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/cli/test_compose_sanity.sh b/tests/cli/test_compose_sanity.sh index 6d70a94b..72b6c931 100755 --- a/tests/cli/test_compose_sanity.sh +++ b/tests/cli/test_compose_sanity.sh @@ -42,15 +42,22 @@ rlJournalStart else rlFail "Compose UUID is empty!" 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 rlPhaseStartTest "cancel compose" rlRun -t -c "$CLI compose cancel $UUID" rlRun -t -c "$CLI compose info $UUID" 1 "compose is canceled" + rlAssertNotExists "/var/run/anaconda.pid" rlPhaseEnd 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 UUID=`echo $UUID | cut -f 2 -d' '`