summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-05-06 12:12:35 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-05-06 16:51:38 +0200
commitdc6d0030110d0ebd7f13a0fdaccfe494fbad0e29 (patch)
tree9361ca027752857f84477bee8ab9398444b7a8e5 /nixos
parent67223ee205364afb203361b134f16b890c4d726c (diff)
downloadnixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.tar
nixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.tar.gz
nixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.tar.bz2
nixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.tar.lz
nixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.tar.xz
nixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.tar.zst
nixlib-dc6d0030110d0ebd7f13a0fdaccfe494fbad0e29.zip
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>
Diffstat (limited to 'nixos')
-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 c9aa9f9c85df..0b0e53ee7324 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.