From a08ae981611d878bc20527a87aeb9e905514d14d Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 19 Sep 2024 05:43:35 -0600 Subject: [PATCH] CI: Quadlet rootfs test: use container image as rootfs Test was written to use / (root). This is not parallel-safe. Fixes: #23909 Signed-off-by: Ed Santiago --- test/system/252-quadlet.bats | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/system/252-quadlet.bats b/test/system/252-quadlet.bats index 8101dbce35..3ccf97d269 100644 --- a/test/system/252-quadlet.bats +++ b/test/system/252-quadlet.bats @@ -723,10 +723,18 @@ EOF @test "quadlet - rootfs" { skip_if_no_selinux skip_if_rootless + + # Mount a container image to use as rootfs. Because we (may) run in + # parallel, mount a working container, not $IMAGE + cname="c-$(safename)" + run_podman run -d --name $cname $IMAGE top + run_podman container mount $cname + mountpoint="$output" + local quadlet_file=$PODMAN_TMPDIR/basic_$(safename).container cat > $quadlet_file <