From 263efd476e30a00deb44d9cb59c7e151fc9423a5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 6 May 2016 12:12:35 +0200 Subject: [PATCH] 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 --- nixos/tests/installer.nix | 4 ++++ 1 file changed, 4 insertions(+) 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.