From 5080185dc2b7211aea7cebb1ff38c2df9373ca00 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Mon, 29 Jul 2024 07:54:37 -0600 Subject: [PATCH] (debug) for 21569: log play-kube command, show at end Signed-off-by: Ed Santiago --- test/system/700-play.bats | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/system/700-play.bats b/test/system/700-play.bats index ce5011bd82..026df80340 100644 --- a/test/system/700-play.bats +++ b/test/system/700-play.bats @@ -157,8 +157,9 @@ RELABEL="system_u:object_r:container_file_t:s0" # Run `play kube` in the background as it will wait for the service # container to exit. + log=/tmp/podman-kube-bg.log timeout --foreground -v --kill=10 60 \ - $PODMAN play kube --service-container=true --log-driver journald $TESTYAML &>/dev/null & + $PODMAN play kube --service-container=true --log-driver journald $TESTYAML &>$log & # Wait for the container to be running container_a=$PODCTRNAME @@ -214,6 +215,10 @@ RELABEL="system_u:object_r:container_file_t:s0" run_podman pod kill $PODNAME _ensure_container_running $service_container false + echo + echo "cat $log:" + cat $log + echo run_podman network ls # Remove the pod and make sure the service is removed along with it