From 8814c21e3f22a9d5067c68d6e56189dee815e564 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 6 Sep 2023 02:20:15 +0200 Subject: [PATCH] checks/garage: wait for ascend-garage-layout before switching --- packages/checks/garage.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/checks/garage.nix b/packages/checks/garage.nix index f1a8dbc..6b9e34c 100644 --- a/packages/checks/garage.nix +++ b/packages/checks/garage.nix @@ -93,6 +93,9 @@ testers.runNixOSTest { node.wait_until_fails("garage status | grep 'NO ROLE ASSIGNED'") with subtest("should apply new layout with ascension"): + for node in nodes: + node.wait_until_succeeds('test "$(systemctl is-active ascend-garage-layout)" != activating') + for node in nodes: node.succeed("/run/current-system/specialisation/modifiedLayout/bin/switch-to-configuration test")