From d25dadf80a30b2cb5ed02592d239cbb6fd64ad4f 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 f450caf7cb..5e2a2089c4 100644 --- a/test/system/040-ps.bats +++ b/test/system/040-ps.bats @@ -89,25 +89,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 - <