From b5e749c4d620b37b3b52b3ffdb0c69ec3d96fb6e Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Fri, 16 Aug 2024 15:28:28 +0000 Subject: nixosTests: sunset-unbuilt: refactor the dag --- nixos/tests/all-tests.nix | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7002237..f9e2df5 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1,4 +1,4 @@ -{ testers }: +{ lib, testers }: let dsl = ./dsl.nix; @@ -16,33 +16,17 @@ let sunset.dag = { nodes = let - abcInputs = { - u = { }; - v = { }; + goalDependsOn = inputs: { + goal = true; + inputs = lib.genAttrs inputs (_: { }); }; in { - a = { - goal = true; - inputs = abcInputs; - }; - b = { - goal = true; - inputs = abcInputs; - }; - c = { - goal = true; - inputs = abcInputs; - }; - - d = { - goal = true; - inputs.w = { }; - }; - e = { - goal = true; - inputs.x = { }; - }; + a = goalDependsOn [ "u" "v" ]; + b = goalDependsOn [ "u" "v" ]; + c = goalDependsOn [ "u" "v" ]; + d = goalDependsOn [ "w" ]; + e = goalDependsOn [ "x" ]; u = { }; v = { }; -- cgit v1.2.3