From 167f5f9e9fbe845fb904dfe64932a1388a2da250 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Thu, 10 Sep 2015 11:15:52 -0700 Subject: Change to find syntax instead of globstar OSX doesn't have bash version 4, so globstar doesn't work. Use find -regex instead. --- run-test.sh | 6 ++---- 1 file 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 $!" -- cgit v1.2.3