Skip to content

Commit

Permalink
Try several times to build the become container (#2467)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
psss authored Nov 13, 2023
1 parent 40d9027 commit 74eb463
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/provision/become/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 74eb463

Please sign in to comment.