From: Frantisek Sumsal Date: Fri, 26 Aug 2022 14:19:42 +0000 (+0200) Subject: test: set the default QEMU and nspawn timeouts to 30 minutes X-Git-Tag: v252-rc1~324^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd15f7f6d1c32dd70fc146cc3cded5f1604dfa8b;p=thirdparty%2Fsystemd.git 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). --- 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}"