mirror of
https://github.com/NixOS/nix
synced 2025-07-09 12:03:55 +02:00
tests/functional: Also keep plain grep calls safe from newlines
This commit is contained in:
parent
644b97ce25
commit
41a03738d6
2 changed files with 21 additions and 3 deletions
|
@ -113,3 +113,7 @@ unset res
|
|||
# treats them as multiple queries.
|
||||
( echo foo; echo bar; ) | expectStderr -101 grepQuiet $'foo\nbar' \
|
||||
| grepQuiet -E 'test-infra\.sh:[0-9]+: in call to grepQuiet: newline not allowed in arguments; grep would try each line individually as if connected by an OR operator'
|
||||
|
||||
# We took the blue pill and woke up in a world where `grep` is moderately safe.
|
||||
expectStderr -101 grep $'foo\nbar' \
|
||||
| grepQuiet -E 'test-infra\.sh:[0-9]+: in call to grep: newline not allowed in arguments; grep would try each line individually as if connected by an OR operator'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue