summaryrefslogtreecommitdiff
path: root/test/system/040-ps.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-28 09:02:14 -0400
committerGitHub <noreply@github.com>2021-09-28 09:02:14 -0400
commit7a748f028ccd175418b07c90ce05281eba899d2f (patch)
treee7fb174e509f722f76df53bc332f846e2ef0eb52 /test/system/040-ps.bats
parentf2ffb96eb317012e94258a242f6dc907acd22c40 (diff)
parent86083c580b101ba1fa580c574c66bcb25be20d7f (diff)
downloadpodman-7a748f028ccd175418b07c90ce05281eba899d2f.tar.gz
podman-7a748f028ccd175418b07c90ce05281eba899d2f.tar.bz2
podman-7a748f028ccd175418b07c90ce05281eba899d2f.zip
Merge pull request #11762 from edsantiago/bats
System tests: speed up. They've gotten too slow.
Diffstat (limited to 'test/system/040-ps.bats')
-rw-r--r--test/system/040-ps.bats8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/system/040-ps.bats b/test/system/040-ps.bats
index b87d177fa..63f57efdc 100644
--- a/test/system/040-ps.bats
+++ b/test/system/040-ps.bats
@@ -90,11 +90,19 @@ load helpers
is "${#lines[@]}" "1" "setup check: no storage containers at start of test"
# Force a buildah timeout; this leaves a buildah container behind
+ local t0=$SECONDS
PODMAN_TIMEOUT=5 run_podman 124 build -t thiswillneverexist - <<EOF
FROM $IMAGE
RUN touch /intermediate.image.to.be.pruned
RUN sleep 30
EOF
+ local t1=$SECONDS
+ local delta_t=$((t1 - t0))
+ if [[ $delta_t -gt 10 ]]; then
+ # FIXME FIXME FIXME: when buildah issue 3544 gets fixed and vendored,
+ # change 'echo' to 'die'
+ echo "podman build did not get killed within 10 seconds (actual time: $delta_t seconds)"
+ fi
run_podman ps -a
is "${#lines[@]}" "1" "podman ps -a does not see buildah containers"