diff options
Diffstat (limited to 'tests/default.nix')
| -rw-r--r-- | tests/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/default.nix b/tests/default.nix index ebf2e96..88ea7d9 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -147,11 +147,18 @@ waitForServices = builtins.concatStringsSep "\n" ( builtins.map (attr: let split = splitAttr attr; - in " maybe_wait(${split.name},\"${split.value}\", ${ - if (builtins.hasAttr "start" attr && attr.start) - then "True" - else "False" - })") + name = + if builtins.isAttrs split.value + then split.value.name + else split.value; + should_be_started = + if builtins.isAttrs split.value + then + if split.value.should_be_started + then "True" + else "False" + else "False"; + in " maybe_wait(${split.name},\"${name}\", ${should_be_started})") args.services ); waitForPorts = builtins.concatStringsSep "\n" ( |
