From ad661b5b3131d07af27adc86a8ead285c51afd00 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 28 May 2024 16:36:20 +0200 Subject: [PATCH] test/system: speed up kube generate tmpfs on /tmp The command does not react on sigterm, so kube down needs to wait 10s. To fix it first use a command that does but also write the yaml directly instead of doing the podman create && kube generate dance. Signed-off-by: Paul Holzinger --- test/system/700-play.bats | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/test/system/700-play.bats b/test/system/700-play.bats index 9d7995aa4c..0944158c94 100644 --- a/test/system/700-play.bats +++ b/test/system/700-play.bats @@ -810,15 +810,12 @@ EOF } @test "podman kube generate tmpfs on /tmp" { - KUBE=$PODMAN_TMPDIR/kube.yaml - run_podman create --name test $IMAGE sleep 100 - run_podman kube generate test -f $KUBE - run_podman kube play $KUBE - run_podman exec test-pod-test sh -c "mount | grep /tmp" + local yaml=$PODMAN_TMPDIR/test.yaml + _write_test_yaml command=/home/podman/pause + run_podman kube play $yaml + run_podman exec test_pod-test sh -c "mount | grep /tmp" assert "$output" !~ "noexec" "mounts on /tmp should not be noexec" - run_podman kube down $KUBE - run_podman pod rm -a -f -t 0 - run_podman rm -a -f -t 0 + run_podman kube down $yaml } @test "podman kube play - pull policy" {