tests/vfio: Give commands 30s to execute

This is a to catch the case of the guest getting stuck.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
(cherry picked from commit 9f1a42c6cc)
This commit is contained in:
Jeremi Piotrowski 2023-08-30 17:35:22 +02:00 committed by Fabiano Fidêncio
parent 65943d5b77
commit a0f59829b2

View File

@ -79,7 +79,7 @@ run_container() {
get_ctr_cmd_output() {
local container_id="$1"
shift
sudo -E ctr t exec --exec-id 2 "${container_id}" "${@}"
timeout 30s sudo -E ctr t exec --exec-id 2 "${container_id}" "${@}"
}
check_guest_kernel() {