mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 22:17:35 +00:00
tests: Apply timeout to 'ctr t kill'
This task has been observed to hang at times. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
9d93036783
commit
a96050a7ad
@ -158,7 +158,7 @@ function clean_env_ctr()
|
|||||||
info "Wait until the containers gets removed"
|
info "Wait until the containers gets removed"
|
||||||
|
|
||||||
for task_id in "${running_tasks[@]}"; do
|
for task_id in "${running_tasks[@]}"; do
|
||||||
sudo ctr t kill -a -s SIGTERM ${task_id} >/dev/null 2>&1
|
sudo timeout -s SIGKILL 30s ctr t kill -a -s SIGTERM ${task_id} >/dev/null 2>&1 || true
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user