Skip to content

Commit 26094ea

Browse files
committed
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.
1 parent a99bbd8 commit 26094ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-one.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export RUST_BACKTRACE=1
2222

2323
unique_fuzzy_file() {
2424
local pattern="$1"
25-
local results="$(find ./tests/headers -type f -iname "*$pattern*")"
25+
local results="$(find ./tests/headers -type f | egrep -i "*$pattern*")"
2626
local num_results=$(echo "$results" | wc -l)
2727

2828
if [[ -z "$results" ]]; then

0 commit comments

Comments
 (0)