tests: add 5 minutes default timeout

By default, it is one hour but our CI cannot handle that many VM tests, so we switch to 5 minutes default timeouts.
This commit is contained in:
Raito Bezarius 2023-10-30 13:40:20 +01:00
parent 8edc9ef771
commit 1859491609
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@
let
inherit (pkgs) lib system;
defaultTimeout = 5 * 60; # = 5 minutes
mkSecureBootTest = { name, machine ? { }, useSecureBoot ? true, useTPM2 ? false, readEfiVariables ? false, testScript }:
let
@ -79,6 +80,7 @@ let
in
pkgs.nixosTest {
inherit name;
globalTimeout = defaultTimeout;
testScript = ''
${lib.optionalString useTPM2 tpm2Initialization}

View File

@ -1,6 +1,7 @@
{ pkgs, runTest, ukiModule }:
let
defaultTimeout = 5 * 60; # = 5 minutes
common = _: {
imports = [ ukiModule ];
@ -21,6 +22,8 @@ in
# this test fails something is very wrong.
systemd-stub = runTest {
name = "systemd-stub";
globalTimeout = defaultTimeout;
nodes.machine = _: {
imports = [ common ];
boot.loader.uki.stub = "${pkgs.systemd}/lib/systemd/boot/efi/linuxx64.efi.stub";
@ -33,6 +36,8 @@ in
fatStub = runTest {
name = "fat-stub";
globalTimeout = defaultTimeout;
nodes.machine = _: {
imports = [ common ];
};