From a0f59829b21370a080ce5f3a8dc85d08a95234bf Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 30 Aug 2023 17:35:22 +0200 Subject: [PATCH] tests/vfio: Give commands 30s to execute This is a to catch the case of the guest getting stuck. Signed-off-by: Jeremi Piotrowski (cherry picked from commit 9f1a42c6cc94462fb2e90553f5ce58de5a51702d) --- tests/functional/vfio/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/vfio/run.sh b/tests/functional/vfio/run.sh index 635e161c8..83cf16100 100755 --- a/tests/functional/vfio/run.sh +++ b/tests/functional/vfio/run.sh @@ -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() {