diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-10-04 11:30:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 11:30:22 +0200 |
commit | c96ccd7d9fb48b8283e84811c2355a3c39bb2a52 (patch) | |
tree | 5cdd04282099d607d86c961e390077b09f50452b /tests/complex.nix | |
parent | 60b5f5e7495dd90b8212d121905feaee313fef8f (diff) | |
parent | 9f7f23abdb161578316d94f45528fbf47982f4d9 (diff) |
Merge pull request #43 from nix-community/test-config
add nixos tests for disko.config
Diffstat (limited to 'tests/complex.nix')
-rw-r--r-- | tests/complex.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/complex.nix b/tests/complex.nix index 3fa861e..cd87b3b 100644 --- a/tests/complex.nix +++ b/tests/complex.nix @@ -3,16 +3,23 @@ }: makeDiskoTest { disko-config = import ../example/complex.nix; + extraConfig = { + fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this! + }; extraTestScript = '' machine.succeed("test -b /dev/zroot/zfs_testvolume"); machine.succeed("test -b /dev/md/raid1p1"); - machine.succeed("mountpoint /mnt"); - machine.succeed("mountpoint /mnt/zfs_fs"); - machine.succeed("mountpoint /mnt/zfs_legacy_fs"); - machine.succeed("mountpoint /mnt/ext4onzfs"); - machine.succeed("mountpoint /mnt/ext4_on_lvm"); + machine.succeed("mountpoint /zfs_fs"); + machine.succeed("mountpoint /zfs_legacy_fs"); + machine.succeed("mountpoint /ext4onzfs"); + machine.succeed("mountpoint /ext4_on_lvm"); + ''; + enableOCR = true; + bootCommands = '' + machine.wait_for_text("Passphrase for") + machine.send_chars("secret\n") ''; extraConfig = { boot.kernelModules = [ "dm-raid" "dm-mirror" ]; |