summaryrefslogtreecommitdiff
path: root/test/system/helpers.bash
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-12-14 11:25:01 -0700
committerEd Santiago <santiago@redhat.com>2020-12-14 15:06:43 -0700
commit1345d0358b741093eae139d06fdd78d379070fa0 (patch)
tree95ba2ca03f967627f234c384682236081c8be72e /test/system/helpers.bash
parent999d40d2c76992cfd2d8c0827b7b0d00c4a2a661 (diff)
downloadpodman-1345d0358b741093eae139d06fdd78d379070fa0.tar.gz
podman-1345d0358b741093eae139d06fdd78d379070fa0.tar.bz2
podman-1345d0358b741093eae139d06fdd78d379070fa0.zip
system tests: the catch-up game
- run test: minor cleanup to .containerenv test. Basically, make it do only two podman-runs (they're expensive) and tighten up the results checks - ps test: add ps -a --storage. Requires small tweak to run_podman helper, so we can have "timeout" be an expected result - sdnotify test: workaround for #8718 (seeing MAINPID=xxx as last output line instead of READY=1). As found by the newly-added debugging echos, what we are seeing is: MAINPID=103530 READY=1 MAINPID=103530 It's not supposed to be that way; it's supposed to be just the first two. But when faced with reality, we must bend to accommodate it, so let's accept READY=1 anywhere in the output stream, not just as the last line. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r--test/system/helpers.bash7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash
index f782de080..a4b89ec99 100644
--- a/test/system/helpers.bash
+++ b/test/system/helpers.bash
@@ -168,8 +168,11 @@ function run_podman() {
if [ "$status" -eq 124 ]; then
if expr "$output" : ".*timeout: sending" >/dev/null; then
- echo "*** TIMED OUT ***"
- false
+ # It's possible for a subtest to _want_ a timeout
+ if [[ "$expected_rc" != "124" ]]; then
+ echo "*** TIMED OUT ***"
+ false
+ fi
fi
fi