From 350dfabf66636f376f174ca879e0857069d1d672 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 3 Jun 2024 19:05:36 +0200 Subject: [PATCH] test/system: speed up podman ps --external The buildah buil kill trick is bad as we have to sleep and wait to aboid flakes which takes time. Instead it is possible to redo this build part manually with buildah commands. It is not trival and harder to understand but it safes 2-3s so I think it is worth it. Signed-off-by: Paul Holzinger --- test/system/040-ps.bats | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/test/system/040-ps.bats b/test/system/040-ps.bats index 5259299ecc..3d829ffcf0 100644 --- a/test/system/040-ps.bats +++ b/test/system/040-ps.bats @@ -142,25 +142,38 @@ load helpers run_podman ps --external 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 - <