summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Rapp <HolgerRapp@gmx.net>2017-06-30 21:56:32 +0200
committerHolger Rapp <HolgerRapp@gmx.net>2017-06-30 21:56:32 +0200
commit5b21f87c3df96eab3b66dab241f604488fe5e0bb (patch)
treea1ff1b7cc5d6c917618e455ceeab150f7bd27732
parent691834d2265ef8e8a14f40785e8601ed789a9110 (diff)
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