From dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29 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 c9aa9f9c85d..0b0e53ee732 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -407,6 +407,10 @@ in { "mdadm --verbose -W /dev/md1", ); ''; + preBootCommands = '' + $machine->start; + $machine->fail("dmesg | grep 'immediate safe mode'"); + ''; }; # Test a basic install using GRUB 1.