diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2017-06-19 16:14:42 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2017-06-20 10:36:49 -0700 |
commit | 26094eaec30a5b89aac61b541a9cd20a131f861d (patch) | |
tree | c561c6561ccdf65705df1f61b2c709248ad24b32 | |
parent | a99bbd865e813143a81d29fac8cb46acd5bf6141 (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-x | tests/test-one.sh | 2 |
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 |