lib/tests: Allow grepping for newlines in error messages

This commit is contained in:
Silvan Mosberger 2020-09-17 13:36:04 +02:00
parent 910dfdc41e
commit 4f0982b223
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -49,7 +49,7 @@ checkConfigError() {
reportFailure "$@"
return 1
else
if echo "$err" | grep --silent "$errorContains" ; then
if echo "$err" | grep -zP --silent "$errorContains" ; then
pass=$((pass + 1))
return 0;
else