From 74eb4638e8ab054888e35e1182a1a8ca8c6a86ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Mon, 13 Nov 2023 21:05:59 +0100 Subject: [PATCH] Try several times to build the `become` container (#2467) Seems this is the only point where the podman tests are still failing with the random network errors tracked in #2063. Let's give several attempts to build the container to reduce the failures. --- tests/provision/become/test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/provision/become/test.sh b/tests/provision/become/test.sh index d6b266bbfc..3fd3b19fd6 100755 --- a/tests/provision/become/test.sh +++ b/tests/provision/become/test.sh @@ -7,7 +7,10 @@ rlJournalStart if [[ "$PROVISION_METHODS" =~ container ]]; then rlPhaseStartSetup rlRun "pushd data" - rlRun "podman build -t become-container-test:latest ." + # Try several times to build the container + # https://github.com/teemtee/tmt/issues/2063 + build="podman build -t become-container-test:latest ." + rlRun "rlWaitForCmd '$build' -m 5 -d 5" || rlDie "Unable to prepare the image" rlPhaseEnd rlPhaseStartTest "Container, test with become=true"