mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
lib/tests: Allow grepping for newlines in error messages
This commit is contained in:
parent
910dfdc41e
commit
4f0982b223
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ checkConfigError() {
|
||||||
reportFailure "$@"
|
reportFailure "$@"
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
if echo "$err" | grep --silent "$errorContains" ; then
|
if echo "$err" | grep -zP --silent "$errorContains" ; then
|
||||||
pass=$((pass + 1))
|
pass=$((pass + 1))
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue