Skip to content

Commit

Permalink
(debug) for 21569: log play-kube command, show at end
Browse files Browse the repository at this point in the history
Signed-off-by: Ed Santiago <santiago@redhat.com>
  • Loading branch information
edsantiago committed Aug 15, 2024
1 parent 71a6cce commit b9818cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/system/700-play.bats
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,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
Expand Down Expand Up @@ -226,6 +227,12 @@ 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
run_podman pod rm $PODNAME
run_podman 1 container exists $service_container
Expand Down

0 comments on commit b9818cb

Please sign in to comment.