From 480d43748aeb3eb8ad799cb1fc51a52ce5063f86 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 15 Aug 2024 10:54:59 -0600 Subject: [PATCH] CI: quadlet tests: make parallel-safe The usual, safename instead of hardcoded names or random_string. And remove some rmi statements: we no longer clean up pause_image. Been working great in #23275 all week. Signed-off-by: Ed Santiago --- test/system/252-quadlet.bats | 160 ++++++++++++++++------------------- 1 file changed, 74 insertions(+), 86 deletions(-) diff --git a/test/system/252-quadlet.bats b/test/system/252-quadlet.bats index 90677763c5..f13f15169f 100644 --- a/test/system/252-quadlet.bats +++ b/test/system/252-quadlet.bats @@ -3,6 +3,8 @@ # Tests generated configurations for systemd. # +# bats file_tags=ci:parallel + load helpers load helpers.network load helpers.registry @@ -184,7 +186,7 @@ function wait_for_journal() { @test "quadlet - basic" { # Network=none is to work around a Pasta bug, can be removed once a patched Pasta is available. # Ref https://github.com/containers/podman/pull/21563#issuecomment-1965145324 - local quadlet_file=$PODMAN_TMPDIR/basic_$(random_string).container + local quadlet_file=$PODMAN_TMPDIR/basic_$(safename).container cat > $quadlet_file < $dir1/$quadlet_file < $quadlet_file < $quadlet_file < $quadlet_file < $quadlet_file < $quadlet_file < $quadlet_vol_file < $quadlet_file < $quadlet_vol_file < $quadlet_file < $quadlet_file < $quadlet_network_file < $quadlet_file < $quadlet_network_file < $quadlet_file <$yaml_source < $quadlet_file < $quadlet_network_file <$yaml_source < $quadlet_file < $quadlet_file < $quadlet_file < $quadlet_file < $quadlet_file < $quadlet_file <$unitfile < $tmp_path/$file_name - local quadlet_file=$PODMAN_TMPDIR/basic_$(random_string).container + local quadlet_file=$PODMAN_TMPDIR/basic_$(safename).container cat > $quadlet_file < $quadlet_file < $quadlet_file <$yaml_source < $quadlet_file < $quadlet_image_file < $quadlet_volume_file < $quadlet_container_file < $quadlet_kube_pod_yaml_file < $quadlet_kube_pod_yaml_file < $quadlet_image_file < $quadlet_volume_file < $quadlet_container_file < $quadlet_pod_file < $quadlet_container_file <$yaml_source < $quadlet_file <