aboutsummaryrefslogtreecommitdiff
path: root/tests/dependencies.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-24 14:17:10 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-24 14:26:23 +0100
commit7a8de57d3e7e53a4f6d8060c7201f3fbbe6cd325 (patch)
treee418ac74ab2a2dd45e4ea4c8ecb7017d8b76e9b8 /tests/dependencies.sh
parent4260a22a55d7afc931b22e8c41282fbd0ed18a77 (diff)
Pretty-print 'nix why-depends' / 'nix-store -q --tree' output
Extracted from 678301072f05b650dc15c5edb4c25f08f0d6cace.
Diffstat (limited to 'tests/dependencies.sh')
-rw-r--r--tests/dependencies.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dependencies.sh b/tests/dependencies.sh
index df204d185..8d0fdc10f 100644
--- a/tests/dependencies.sh
+++ b/tests/dependencies.sh
@@ -6,7 +6,7 @@ drvPath=$(nix-instantiate dependencies.nix)
echo "derivation is $drvPath"
-nix-store -q --tree "$drvPath" | grep ' +---.*builder1.sh'
+nix-store -q --tree "$drvPath" | grep '───.*builder1.sh'
# Test Graphviz graph generation.
nix-store -q --graph "$drvPath" > $TEST_ROOT/graph
@@ -22,9 +22,9 @@ nix-store -q --graph "$outPath" > $TEST_ROOT/graph
if test -n "$dot"; then
# Does it parse?
$dot < $TEST_ROOT/graph
-fi
+fi
-nix-store -q --tree "$outPath" | grep '+---.*dependencies-input-2'
+nix-store -q --tree "$outPath" | grep '───.*dependencies-input-2'
echo "output path is $outPath"
@@ -49,4 +49,4 @@ nix-store -q --referrers-closure "$input2OutPath" | grep "$outPath"
# Check that the derivers are set properly.
test $(nix-store -q --deriver "$outPath") = "$drvPath"
-nix-store -q --deriver "$input2OutPath" | grep -q -- "-input-2.drv"
+nix-store -q --deriver "$input2OutPath" | grep -q -- "-input-2.drv"