diff options
| author | aszlig <aszlig@redmoonstudios.org> | 2016-05-06 12:12:35 +0200 |
|---|---|---|
| committer | aszlig <aszlig@redmoonstudios.org> | 2016-05-06 22:14:35 +0200 |
| commit | 263efd476e30a00deb44d9cb59c7e151fc9423a5 (patch) | |
| tree | 8f669468a3579ea3e90ba2c53d642919c3c23111 | |
| parent | nixos/stage-1: Don't kill kernel threads (diff) | |
| download | nixpkgs-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.nix | 4 |
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. |
