mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
tests: Move example tests to dedicated folder
This commit is contained in:
1 parent
389235b63f
commit
737e045f53
40 files changed
+58
-43
No files matched your search
@@ -0,0 +1,16 @@
|
||||
{ pkgs ? import <nixpkgs> { }
|
||||
, diskoLib ? pkgs.callPackage ../src/disko_lib { }
|
||||
}:
|
||||
diskoLib.testLib.makeDiskoTest {
|
||||
inherit pkgs;
|
||||
name = "boot-raid1";
|
||||
disko-config = ../../example/boot-raid1.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("test -b /dev/md/boot");
|
||||
machine.succeed("mountpoint /boot");
|
||||
'';
|
||||
extraSystemConfig = {
|
||||
# sadly systemd-boot fails to install to a raid /boot device
|
||||
boot.loader.systemd-boot.enable = false;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user