mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
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>
This commit is contained in:
parent
b46b0ecf8b
commit
9f1a42c6cc
@ -79,7 +79,7 @@ run_container() {
|
|||||||
get_ctr_cmd_output() {
|
get_ctr_cmd_output() {
|
||||||
local container_id="$1"
|
local container_id="$1"
|
||||||
shift
|
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() {
|
check_guest_kernel() {
|
||||||
|
Loading…
Reference in New Issue
Block a user