summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-05-06 12:12:35 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-05-06 22:14:35 +0200
commit263efd476e30a00deb44d9cb59c7e151fc9423a5 (patch)
tree8f669468a3579ea3e90ba2c53d642919c3c23111
parentnixos/stage-1: Don't kill kernel threads (diff)
downloadnixpkgs-263efd476e30a00deb44d9cb59c7e151fc9423a5.tar.gz
nixos/tests/installer/swraid: Check for safemode
This is a regression test for #15226, so that the test will fail once we accidentally kill one or more of the md kthreads (aka: if safe mode is enabled). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--nixos/tests/installer.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index b2e1abc26eec..33db2df019e5 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -370,6 +370,10 @@ in {
"mdadm -W /dev/md1",
);
'';
+ preBootCommands = ''
+ $machine->start;
+ $machine->fail("dmesg | grep 'immediate safe mode'");
+ '';
};
# Test a basic install using GRUB 1.