summaryrefslogtreecommitdiff
path: root/test/system/060-mount.bats
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-09-27 11:36:31 -0600
committerEd Santiago <santiago@redhat.com>2021-09-27 20:06:18 -0600
commit86083c580b101ba1fa580c574c66bcb25be20d7f (patch)
treee05edda98398f7bf5a4f364c5e464ee061103d60 /test/system/060-mount.bats
parent340166876eab09d3e363647213f162864a95d270 (diff)
downloadpodman-86083c580b101ba1fa580c574c66bcb25be20d7f.tar.gz
podman-86083c580b101ba1fa580c574c66bcb25be20d7f.tar.bz2
podman-86083c580b101ba1fa580c574c66bcb25be20d7f.zip
System tests: speed up. They've gotten too slow.
- logs: remove unnecessary sleeps. This saves ~25s. Unfortunately, journald seems to have some sort of lag, so we need to keep retrying until we get the 'after' string. - ps: add placeholder test for once buildah 3544 is fixed - cp: bulk-kill containers when finished, instead of one by one. This is a big change and only saves about 8s per run, but hey. - mount,pause,healthcheck: 'podman stop -t 0' before rm'ing containers. Easy 50s. Have I mentioned, lately, that 'podman rm -f' needs a '-t 0' flag? - play: same, and also 'podman pod stop'. Seems to shave ~20s. - socket-activation: UGH! Buggy and useless tests! They were running "sleep 90" containers for no reason whatsoever. I assume the intention was to run them with "-d", so that's what I've done here. Also fixed some language. 180 seconds! (Unrelated: cleanup in 070-build, use $IMAGE, not alpine) Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/060-mount.bats')
-rw-r--r--test/system/060-mount.bats2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/system/060-mount.bats b/test/system/060-mount.bats
index 63a93e13b..ba37ea5e1 100644
--- a/test/system/060-mount.bats
+++ b/test/system/060-mount.bats
@@ -125,6 +125,7 @@ load helpers
run_podman exec $cid find /image-mount/etc/
# Clean up
+ run_podman stop -t 0 $cid
run_podman rm -f $cid
}
@@ -147,6 +148,7 @@ load helpers
run_podman inspect --format "{{(index .Mounts 0).RW}}" $cid
is "$output" "true" "inspect data includes image mount source"
+ run_podman stop -t 0 $cid
run_podman rm -f $cid
}