Force usage of GNU grep in e2e scripts on macOS
Prevents e2e-test.sh from failing on scripts sourced from test-infra on
macOS.
@@ -21,9 +21,10 @@ source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh
# If gcloud is not available make it a no-op, not an error.
which gcloud &> /dev/null || gcloud() { echo "[ignore-gcloud $*]" 1>&2; }
-# Let sed work on mac.
+# Use GNU tools on macOS. Requires the 'grep' and 'gnu-sed' Homebrew formulae.
if [ "$(uname)" == "Darwin" ]; then
sed=gsed
+ grep=ggrep
fi
# Eventing main config.
