mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
tests: use mountpoint program to check for mountpoints
This commit is contained in:
1 parent
69f1337980
commit
05a90d4227
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -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");
|
||||
'';
|
||||
}
|
||||
+1
-1
@@ -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" ];
|
||||
|
||||
+1
-1
@@ -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");
|
||||
'';
|
||||
}
|
||||
+1
-1
@@ -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");
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user