aboutsummaryrefslogtreecommitdiff
path: root/tests/export-graph.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/export-graph.nix')
-rw-r--r--tests/export-graph.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/export-graph.nix b/tests/export-graph.nix
index d65ad8c14..3a0b0368d 100644
--- a/tests/export-graph.nix
+++ b/tests/export-graph.nix
@@ -4,12 +4,13 @@ rec {
printRefs =
''
+ echo $exportReferencesGraph
while read path; do
read drv
read nrRefs
echo "$path has $nrRefs references"
echo "$path" >> $out
- for ((n = 0; n < $nrRefs; n++)); do read ref; echo "ref $ref"; done
+ for ((n = 0; n < $nrRefs; n++)); do read ref; echo "ref $ref"; test -e "$ref"; done
done < refs
'';
@@ -22,7 +23,7 @@ rec {
buildGraph = mkDerivation {
name = "dependencies";
builder = builtins.toFile "build-graph-builder" "${printRefs}";
- exportBuildReferencesGraph = ["refs" (import ./dependencies.nix).drvPath];
+ exportReferencesGraph = ["refs" (import ./dependencies.nix).drvPath];
};
}