mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
zfs-with-vdevs: increase pool import timeout
Fix fixes a long-standing test failures we have with the zfs-with-vdevs.
This commit is contained in:
1 parent
fc3ba6985f
commit
4e30bc7921
2 files changed
+9
-2
No files matched your search
@@ -93,8 +93,6 @@
|
||||
cache = [ "cache" ];
|
||||
};
|
||||
};
|
||||
# Workaround: cannot import 'zroot': I/O error in disko tests
|
||||
options.cachefile = "none";
|
||||
|
||||
rootFsOptions = {
|
||||
compression = "zstd";
|
||||
|
||||
@@ -8,6 +8,15 @@ diskoLib.testLib.makeDiskoTest {
|
||||
extraInstallerConfig.networking.hostId = "8425e349";
|
||||
extraSystemConfig = {
|
||||
networking.hostId = "8425e349";
|
||||
# It looks like the 60s of NixOS is sometimes not enough for our virtio-based zpool.
|
||||
# This fixes the flakeiness of the test.
|
||||
boot.initrd.postResumeCommands = ''
|
||||
for i in $(seq 1 120); do
|
||||
if zpool list | grep -q zroot || zpool import -N zroot; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
'';
|
||||
};
|
||||
extraTestScript = ''
|
||||
def assert_property(ds, property, expected_value):
|
||||
|
||||
Reference in new issue
Block a user