diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-01-31 14:01:46 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-31 14:09:27 +0100 |
commit | 678301072f05b650dc15c5edb4c25f08f0d6cace (patch) | |
tree | 76dc9f3e2adcec62fe4c39cfb417bf1984595f69 /tests | |
parent | a6e2b6b36044d7708cf50b464009e50c8d120730 (diff) |
nix flake list-inputs: Pretty-print the tree
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dependencies.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dependencies.sh b/tests/dependencies.sh index df204d185..93b681f18 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" |