diff --git a/test/system/252-quadlet.bats b/test/system/252-quadlet.bats index 05af2b8c1e..50c6bee147 100644 --- a/test/system/252-quadlet.bats +++ b/test/system/252-quadlet.bats @@ -101,7 +101,7 @@ function service_cleanup() { if [[ -n "$expected_state" ]]; then run systemctl show --property=ActiveState "$service" assert "$output" = "ActiveState=$expected_state" \ - "state of service after systemctl stop" + "state of service $service after systemctl stop" fi rm -f "$UNIT_DIR/$service" @@ -246,13 +246,17 @@ EOF # A quadlet container depends on a quadlet volume @test "quadlet - volume dependency" { - local quadlet_vol_file=$PODMAN_TMPDIR/dep_$(random_string).volume + # Save the unit name to use as the volume for the container + local quadlet_vol_unit=dep_$(random_string).volume + local quadlet_vol_file=$PODMAN_TMPDIR/${quadlet_vol_unit} cat > $quadlet_vol_file <