Skip to content

Commit

Permalink
Merge pull request #12519 from vrothberg/fix-9597
Browse files Browse the repository at this point in the history
fix remote run/start flake
  • Loading branch information
openshift-merge-robot authored Dec 6, 2021
2 parents 6d1b2dc + 207065c commit 6663d72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/system/035-logs.bats
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ ${cid[0]} d" "Sequential output from logs"

function _log_test_restarted() {
run_podman run --log-driver=$1 --name logtest $IMAGE sh -c 'start=0; if test -s log; then start=`tail -n 1 log`; fi; seq `expr $start + 1` `expr $start + 10` | tee -a log'
# FIXME: #9597
# run/start is flaking for remote so let's wait for the container condition
# to stop wasting energy until the root cause gets fixed.
run_podman container wait --condition=exited logtest
run_podman start -a logtest
logfile=$(mktemp -p ${PODMAN_TMPDIR} logfileXXXXXXXX)
$PODMAN $_PODMAN_TEST_OPTS logs -f logtest > $logfile
Expand Down

0 comments on commit 6663d72

Please sign in to comment.