summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-06-19 16:14:42 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2017-06-20 10:36:49 -0700
commit26094eaec30a5b89aac61b541a9cd20a131f861d (patch)
treec561c6561ccdf65705df1f61b2c709248ad24b32
parenta99bbd865e813143a81d29fac8cb46acd5bf6141 (diff)
Allow path separators in test-one.sh
Before this commit, test-one.sh was unusable with tests/headers/template.hpp because there were too many things with "template.hpp" as a suffix. This allows us to specify "/template.hpp" to run the test.
-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 3f9ce457..caa644fc 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 -iname "*$pattern*")"
+ local results="$(find ./tests/headers -type f | egrep -i "*$pattern*")"
local num_results=$(echo "$results" | wc -l)
if [[ -z "$results" ]]; then