Merge pull request #250 from nix-community/vm-timeouts
tests: add 5 minutes default timeout
This commit is contained in:
commit
781303ad7c
|
@ -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}
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue