mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
Tighten up the exportReferencesGraph tests
Add an `$` at the end of the `grep` regex. Without it, `checkRef foo`
would always imply `checkRef foo.drv`. We want to tell these situations
apart to more precisely test what is going on.
(cherry picked from commit f58759816d)
This commit is contained in:
parent
0a53374a4b
commit
51b03401fb
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ clearStore
|
|||
clearProfiles
|
||||
|
||||
checkRef() {
|
||||
nix-store -q --references $TEST_ROOT/result | grep -q "$1" || fail "missing reference $1"
|
||||
nix-store -q --references $TEST_ROOT/result | grep -q "$1"'$' || fail "missing reference $1"
|
||||
}
|
||||
|
||||
# Test the export of the runtime dependency graph.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue