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:
Jörg Thalheim committed 2024-10-01 10:08:10 +02:00
1 parent fc3ba6985f
commit 4e30bc7921
2 files changed
+9 -2

No files matched your search

-2
View File
@@ -93,8 +93,6 @@
cache = [ "cache" ];
};
};
# Workaround: cannot import 'zroot': I/O error in disko tests
options.cachefile = "none";
rootFsOptions = {
compression = "zstd";
+9
View File
@@ -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):