about summary refs log tree commit diff
path: root/nixos/tests/incus/preseed.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/incus/preseed.nix')
-rw-r--r--nixos/tests/incus/preseed.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/nixos/tests/incus/preseed.nix b/nixos/tests/incus/preseed.nix
index 19ec3889093c6..47b2d0cd62284 100644
--- a/nixos/tests/incus/preseed.nix
+++ b/nixos/tests/incus/preseed.nix
@@ -49,13 +49,8 @@ import ../make-test-python.nix ({ pkgs, lib, ... } :
   };
 
   testScript = ''
-    def wait_for_preseed(_) -> bool:
-      _, output = machine.systemctl("is-active incus-preseed.service")
-      return ("inactive" in output)
-
     machine.wait_for_unit("incus.service")
-    with machine.nested("Waiting for preseed to complete"):
-      retry(wait_for_preseed)
+    machine.wait_for_unit("incus-preseed.service")
 
     with subtest("Verify preseed resources created"):
       machine.succeed("incus profile show nixostest_default")