From cd15f7f6d1c32dd70fc146cc3cded5f1604dfa8b Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 26 Aug 2022 16:19:42 +0200 Subject: [PATCH] test: set the default QEMU and nspawn timeouts to 30 minutes Set both timeouts to some reasonable values instead of just `infinity` to provide some form of a safe-net in case the test goes haywire and the environment didn't set the timeouts itself (like our CIs do). --- test/test-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-functions b/test/test-functions index 1c0441e7c55..473587fe9f7 100644 --- a/test/test-functions +++ b/test/test-functions @@ -24,8 +24,8 @@ source "$os_release" [[ "$ID" = "arch" || " $ID_LIKE " = *" arch "* ]] && LOOKS_LIKE_ARCH=yes || LOOKS_LIKE_ARCH="" [[ " $ID_LIKE " = *" suse "* ]] && LOOKS_LIKE_SUSE=yes || LOOKS_LIKE_SUSE="" KERNEL_VER="${KERNEL_VER-$(uname -r)}" -QEMU_TIMEOUT="${QEMU_TIMEOUT:-infinity}" -NSPAWN_TIMEOUT="${NSPAWN_TIMEOUT:-infinity}" +QEMU_TIMEOUT="${QEMU_TIMEOUT:-1800}" +NSPAWN_TIMEOUT="${NSPAWN_TIMEOUT:-1800}" TIMED_OUT= # will be 1 after run_* if *_TIMEOUT is set and test timed out [[ "$LOOKS_LIKE_SUSE" ]] && FSTYPE="${FSTYPE:-btrfs}" || FSTYPE="${FSTYPE:-ext4}" UNIFIED_CGROUP_HIERARCHY="${UNIFIED_CGROUP_HIERARCHY:-default}"