diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-08-07 19:32:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 19:32:49 +0200 |
commit | 5624777988e0b8368eb019fc8d3e4fc1ff5790e0 (patch) | |
tree | e30d034694ca8e281862c9c9ca8e912388a2ed97 /tests | |
parent | 4999f42a70468b62f51afef98f8c4070c02659d8 (diff) | |
parent | 7c09104a943978a165885e10697b418f8bab2795 (diff) |
Merge pull request #8786 from Ma27/fix-why-depends-precise
nix/why-depends: fix output of `--precise`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/why-depends.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/why-depends.sh b/tests/why-depends.sh index b35a0d1cf..9680bf80e 100644 --- a/tests/why-depends.sh +++ b/tests/why-depends.sh @@ -22,3 +22,8 @@ echo "$PRECISE_WHY_DEPENDS_OUTPUT" | grepQuiet input-2 # But only the “precise” one should refer to `reference-to-input-2` echo "$FAST_WHY_DEPENDS_OUTPUT" | grepQuietInverse reference-to-input-2 echo "$PRECISE_WHY_DEPENDS_OUTPUT" | grepQuiet reference-to-input-2 + +<<<"$PRECISE_WHY_DEPENDS_OUTPUT" sed -n '2p' | grepQuiet "└───reference-to-input-2 -> " +<<<"$PRECISE_WHY_DEPENDS_OUTPUT" sed -n '3p' | grep " →" | grepQuiet "dependencies-input-2" +<<<"$PRECISE_WHY_DEPENDS_OUTPUT" sed -n '4p' | grepQuiet " └───input0: …" # in input-2, file input0 +<<<"$PRECISE_WHY_DEPENDS_OUTPUT" sed -n '5p' | grep " →" | grepQuiet "dependencies-input-0" # is dependencies-input-0 referenced |