summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@mips.inka.de>2019-09-18 10:24:27 +0900
committerChristian Weisgerber <naddy@mips.inka.de>2019-09-18 10:24:27 +0900
commit84eeb65d2ce0fd29185a5ea8d7276b2f4f873967 (patch)
treeb8b84cebabca8b8c0f712b291d66f0846ba8fcef
parentbd9961200cc795c179395e4de02ca50697608b52 (diff)
downloadnss-hg-84eeb65d2ce0fd29185a5ea8d7276b2f4f873967.tar.gz
Bug 1581507 - Fix unportable grep expression in test scripts r=marcusburghardt
-rw-r--r--tests/policy/policy.sh2
-rwxr-xr-xtests/ssl/ssl.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/policy/policy.sh b/tests/policy/policy.sh
index 228c982a5..50aee50ef 100644
--- a/tests/policy/policy.sh
+++ b/tests/policy/policy.sh
@@ -14,7 +14,7 @@
ignore_blank_lines()
{
- LC_ALL=C grep -v '^[[:space:]]*\(#\|$\)' "$1"
+ LC_ALL=C egrep -v '^[[:space:]]*(#|$)' "$1"
}
policy_run_tests()
diff --git a/tests/ssl/ssl.sh b/tests/ssl/ssl.sh
index 37eb0f1d8..a05090694 100755
--- a/tests/ssl/ssl.sh
+++ b/tests/ssl/ssl.sh
@@ -284,7 +284,7 @@ start_selfserv()
ignore_blank_lines()
{
- LC_ALL=C grep -v '^[[:space:]]*\(#\|$\)' "$1"
+ LC_ALL=C egrep -v '^[[:space:]]*(#|$)' "$1"
}
############################## ssl_cov #################################