Merge pull request #18319 from vrothberg/fix-10825

test/system/260-sdnotify.bats: fix test flake
This commit is contained in:
openshift-ci[bot] 2023-04-24 14:04:51 +00:00 committed by GitHub
commit 9f4f4297d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -338,8 +338,10 @@ ignore"
# potential issues.
run_podman exec --env NOTIFY_SOCKET="/run/notify/notify.sock" $container_a /usr/bin/systemd-notify --ready
# Instruct the container to stop
run_podman exec $container_a /bin/touch /stop
# Instruct the container to stop.
# Run detached as the `exec` session races with the cleanup process
# of the exiting container (see #10825).
run_podman exec -d $container_a /bin/touch /stop
run_podman container wait $container_a
run_podman container inspect $container_a --format "{{.State.ExitCode}}"