nixos/zfs: fix tests on zfsUnstable
This commit is contained in:
parent
46d6445c7f
commit
fd264ba8a2
1 changed files with 5 additions and 2 deletions
|
@ -113,6 +113,8 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
|
# TODO: Remove this when upgrading stable to zfs 2.2.0
|
||||||
|
unstable = ${if enableUnstable then "True" else "False"};
|
||||||
machine.wait_for_unit("multi-user.target")
|
machine.wait_for_unit("multi-user.target")
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"zpool status",
|
"zpool status",
|
||||||
|
@ -133,9 +135,10 @@ let
|
||||||
)
|
)
|
||||||
machine.crash()
|
machine.crash()
|
||||||
machine.wait_for_unit("multi-user.target")
|
machine.wait_for_unit("multi-user.target")
|
||||||
|
machine.succeed("zfs set sharesmb=on rpool/shared_smb")
|
||||||
|
if not unstable:
|
||||||
|
machine.succeed("zfs share rpool/shared_smb")
|
||||||
machine.succeed(
|
machine.succeed(
|
||||||
"zfs set sharesmb=on rpool/shared_smb",
|
|
||||||
"zfs share rpool/shared_smb",
|
|
||||||
"smbclient -gNL localhost | grep rpool_shared_smb",
|
"smbclient -gNL localhost | grep rpool_shared_smb",
|
||||||
"umount /tmp/mnt",
|
"umount /tmp/mnt",
|
||||||
"zpool destroy rpool",
|
"zpool destroy rpool",
|
||||||
|
|
Loading…
Reference in a new issue