From ca876483db9a5f91ef0fdad0d12615fb9c04e369 Mon Sep 17 00:00:00 2001 From: Jakub Rusz Date: Tue, 14 Jan 2020 08:43:57 +0100 Subject: [PATCH] tests: check for failed compose before trying to cancel This was suggested and added to rhel8-branch so adding it here as well. --- tests/cli/test_compose_sanity.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/cli/test_compose_sanity.sh b/tests/cli/test_compose_sanity.sh index 006b034d..6d70a94b 100755 --- a/tests/cli/test_compose_sanity.sh +++ b/tests/cli/test_compose_sanity.sh @@ -34,6 +34,10 @@ rlJournalStart until $CLI compose info $UUID | grep 'RUNNING'; do sleep 20 rlLogInfo "Waiting for compose to start running..." + if $CLI compose info $UUID | grep 'FAILED'; then + rlFail "Compose FAILED!" + break + fi done; else rlFail "Compose UUID is empty!"