mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
tests: use mountpoint program to check for mountpoints
This commit is contained in:
parent
69f1337980
commit
05a90d4227
@ -5,6 +5,6 @@ makeDiskoTest {
|
||||
disko-config = import ../example/luks-lvm.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("cryptsetup isLuks /dev/vdb2");
|
||||
machine.succeed("grep -qs '/mnt/home' /proc/mounts");
|
||||
machine.succeed("mountpoint /mnt/home");
|
||||
'';
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
makeDiskoTest {
|
||||
disko-config = import ../example/lvm-raid.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("grep -qs '/mnt/home' /proc/mounts");
|
||||
machine.succeed("mountpoint /mnt/home");
|
||||
'';
|
||||
extraConfig = {
|
||||
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
|
||||
|
@ -5,6 +5,6 @@ makeDiskoTest {
|
||||
disko-config = import ../example/mdadm.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("test -b /dev/md/raid1");
|
||||
machine.succeed("grep -qs '/mnt/raid' /proc/mounts");
|
||||
machine.succeed("mountpoint /mnt/raid");
|
||||
'';
|
||||
}
|
||||
|
@ -5,6 +5,6 @@ makeDiskoTest {
|
||||
disko-config = import ../example/zfs.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("test -b /dev/zvol/zroot/zfs_testvolume");
|
||||
machine.succeed("grep -qs '/mnt/ext4onzfs' /proc/mounts");
|
||||
machine.succeed("mountpoint /mnt/ext4onzfs");
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user