summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-06-30 15:46:21 -0700
committerGitHub <noreply@github.com>2017-06-30 15:46:21 -0700
commit1cbb5d39d28814d45b9db3f7c89943629e634012 (patch)
treea1ff1b7cc5d6c917618e455ceeab150f7bd27732
parent691834d2265ef8e8a14f40785e8601ed789a9110 (diff)
parent5b21f87c3df96eab3b66dab241f604488fe5e0bb (diff)
Auto merge of #782 - SirVer:00_fix_repetition_operation, r=fitzgen
Fix tests/test-one.sh. On Mac OS where egrep is != GNU grep, the script fails with ~~~ egrep: repetition-operator operand invalid ERROR: no files found with pattern "virtual_inheritance" ~~~~ The `$pattern` is supposed to be a substring in the test name to run. The leading and trailing stars are wrong, since egrep takes a regular expression, not a glob.
-rwxr-xr-xtests/test-one.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-one.sh b/tests/test-one.sh
index caa644fc..50950a59 100755
--- a/tests/test-one.sh
+++ b/tests/test-one.sh
@@ -22,7 +22,7 @@ export RUST_BACKTRACE=1
unique_fuzzy_file() {
local pattern="$1"
- local results="$(find ./tests/headers -type f | egrep -i "*$pattern*")"
+ local results="$(find ./tests/headers -type f | egrep -i "$pattern")"
local num_results=$(echo "$results" | wc -l)
if [[ -z "$results" ]]; then