summaryrefslogtreecommitdiff
path: root/test/system/035-logs.bats
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-12-06 15:22:55 +0100
committerValentin Rothberg <rothberg@redhat.com>2021-12-06 15:30:31 +0100
commit207065ce9f0fbe7f025905d25210add5bbf4165e (patch)
tree03b1c6b163cb3a1d13186c567f894a199899ea8e /test/system/035-logs.bats
parent188f1989faa7de371558cb5466132edcfe62eda3 (diff)
downloadpodman-207065ce9f0fbe7f025905d25210add5bbf4165e.tar.gz
podman-207065ce9f0fbe7f025905d25210add5bbf4165e.tar.bz2
podman-207065ce9f0fbe7f025905d25210add5bbf4165e.zip
fix remote run/start flake
Fix the flake reported in #9597 with a workaround to at least stop wasting energy until the root cause has been found and fixed. It seems that a remote run returns before the container has transitioned into the `exited` state which ultimately breaks a subsequent remote start with attach. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/system/035-logs.bats')
-rw-r--r--test/system/035-logs.bats4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/system/035-logs.bats b/test/system/035-logs.bats
index 44984eaad..3caf97a22 100644
--- a/test/system/035-logs.bats
+++ b/test/system/035-logs.bats
@@ -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