diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/export-graph.nix | 4 | ||||
-rw-r--r-- | tests/export-graph.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/export-graph.nix b/tests/export-graph.nix index 3a0b0368d6ca..fdac9583db2c 100644 --- a/tests/export-graph.nix +++ b/tests/export-graph.nix @@ -14,13 +14,13 @@ rec { done < refs ''; - runtimeGraph = mkDerivation { + foo."bar.runtimeGraph" = mkDerivation { name = "dependencies"; builder = builtins.toFile "build-graph-builder" "${printRefs}"; exportReferencesGraph = ["refs" (import ./dependencies.nix)]; }; - buildGraph = mkDerivation { + foo."bar.buildGraph" = mkDerivation { name = "dependencies"; builder = builtins.toFile "build-graph-builder" "${printRefs}"; exportReferencesGraph = ["refs" (import ./dependencies.nix).drvPath]; diff --git a/tests/export-graph.sh b/tests/export-graph.sh index 7f6f83d87c3b..a6fd69054425 100644 --- a/tests/export-graph.sh +++ b/tests/export-graph.sh @@ -9,7 +9,7 @@ checkRef() { # Test the export of the runtime dependency graph. -outPath=$(nix-build ./export-graph.nix -A runtimeGraph -o $TEST_ROOT/result) +outPath=$(nix-build ./export-graph.nix -A 'foo."bar.runtimeGraph"' -o $TEST_ROOT/result) test $(nix-store -q --references $TEST_ROOT/result | wc -l) = 2 || fail "bad nr of references" @@ -20,7 +20,7 @@ for i in $(cat $outPath); do checkRef $i; done nix-store --gc # should force rebuild of input-1 -outPath=$(nix-build ./export-graph.nix -A buildGraph -o $TEST_ROOT/result) +outPath=$(nix-build ./export-graph.nix -A 'foo."bar.buildGraph"' -o $TEST_ROOT/result) checkRef input-1 checkRef input-1.drv |