From ddc2b9bbef9480f7e9e1f2d12ec4c9d46d52ffaa Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Mon, 27 Sep 2021 11:36:31 -0600 Subject: 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 --- test/system/070-build.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/system/070-build.bats') diff --git a/test/system/070-build.bats b/test/system/070-build.bats index 3faa260e1..4e89e299a 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -960,7 +960,7 @@ EOF tmpdir=$PODMAN_TMPDIR/build-test mkdir -p $tmpdir/target ln -s target $tmpdir/link - echo FROM alpine > $tmpdir/link/Dockerfile + echo FROM $IMAGE > $tmpdir/link/Dockerfile echo RUN echo hello >> $tmpdir/link/Dockerfile run_podman build -t build_test $tmpdir/link } -- cgit v1.2.3-54-g00ecf