From df69b36ee5578e2d7af0ca8c3820d8f5f19eaf7e Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 11 Apr 2024 13:45:31 -0600 Subject: [PATCH] (minor) prefetch systemd image before use Two system tests were relying on $SYSTEMD_IMAGE but were not running _prefetch. This led to baffling flakes that wasted my time. (Quay flakes, of course. New manifestation.) Signed-off-by: Ed Santiago --- test/system/030-run.bats | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 6818fa79cd..f44c36fb76 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -506,6 +506,8 @@ json-file | f } @test "podman run --tz with zoneinfo" { + _prefetch $SYSTEMD_IMAGE + # First make sure that zoneinfo is actually in the image otherwise the test is pointless run_podman run --rm $SYSTEMD_IMAGE ls /usr/share/zoneinfo @@ -1395,6 +1397,8 @@ search | $IMAGE | # https://issues.redhat.com/browse/RHEL-14469 @test "podman run - /run must not be world-writable in systemd containers" { + _prefetch $SYSTEMD_IMAGE + run_podman run -d --rm $SYSTEMD_IMAGE /usr/sbin/init cid=$output