Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Mitchell <mmitche@microsoft.com>2015-09-10 21:15:52 +0300
committerMatt Mitchell <mmitche@microsoft.com>2015-09-10 21:15:52 +0300
commit167f5f9e9fbe845fb904dfe64932a1388a2da250 (patch)
treecb25397cf488ddb414355c985fd49520db842a68 /run-test.sh
parente73a0548b754b3a7566689718dcc1a70f7e845d9 (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-xrun-test.sh6
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 $!"