From e5de355093e302d159be7ae4377a5e4f4620813d Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez-Fernandez Date: Sep 25 2023 08:47:48 +0000 Subject: podman: give time to loginctl linger to setup Signed-off-by: Carlos Rodriguez-Fernandez --- diff --git a/tests/p_podman/15_podman_socket_tests.sh b/tests/p_podman/15_podman_socket_tests.sh index 711dcdd..c890e36 100755 --- a/tests/p_podman/15_podman_socket_tests.sh +++ b/tests/p_podman/15_podman_socket_tests.sh @@ -14,6 +14,9 @@ loginctl enable-linger podman-remote-test output_file=$(mktemp) trap "loginctl terminate-user podman-remote-test && loginctl disable-linger podman-remote-test && sleep 1 && userdel -r podman-remote-test && rm -f ${output_file}" EXIT +# give time to loginctl linger +sleep 3 + su -l podman-remote-test > ${output_file} 2>&1 <