diff options
author | Matt Mitchell <mmitche@microsoft.com> | 2015-09-10 21:15:52 +0300 |
---|---|---|
committer | Matt Mitchell <mmitche@microsoft.com> | 2015-09-10 21:15:52 +0300 |
commit | 167f5f9e9fbe845fb904dfe64932a1388a2da250 (patch) | |
tree | cb25397cf488ddb414355c985fd49520db842a68 /run-test.sh | |
parent | e73a0548b754b3a7566689718dcc1a70f7e845d9 (diff) |
Change to find syntax instead of globstar
OSX doesn't have bash version 4, so globstar doesn't work. Use find -regex instead.
Diffstat (limited to 'run-test.sh')
-rwxr-xr-x | run-test.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/run-test.sh b/run-test.sh index 9d390fde64..cac33f6b09 100755 --- a/run-test.sh +++ b/run-test.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash -# Enable globstar for the purposes of directory evaluation -shopt -s globstar - wait_on_pids() { # Wait on the last processes @@ -298,7 +295,8 @@ create_test_overlay TestsFailed=0 numberOfProcesses=0 maxProcesses=$(($(getconf _NPROCESSORS_ONLN)+1)) -for file in src/**/tests/**/*.Tests.csproj +TestProjects=($(find . -regex ".*/src/.*/tests/.*\.Tests\.csproj")) +for file in ${TestProjects[@]} do runtest $file & pids="$pids $!" |