mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Merge pull request #22658 from giuseppe/libpod-wait-for-healthy-on-main-thread
libpod: wait for healthy on main thread
This commit is contained in:
@@ -233,6 +233,15 @@ READY=1" "Container log after healthcheck run"
|
||||
is "$output" "running" "make sure container is still running"
|
||||
|
||||
run_podman rm -f -t0 $ctr
|
||||
|
||||
ctr=$(random_string)
|
||||
run_podman run --name $ctr \
|
||||
--health-cmd="touch /terminate" \
|
||||
--sdnotify=healthy \
|
||||
$IMAGE sh -c 'while test \! -e /terminate; do sleep 0.1; done; echo finished'
|
||||
is "$output" "finished" "make sure container exited successfully"
|
||||
run_podman rm -f -t0 $ctr
|
||||
|
||||
_stop_socat
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user