From: Michelle McDaniel Date: Wed, 9 Jan 2019 20:56:30 +0000 (-0800) Subject: Fix perf-prep to pass the branch name (#21911) X-Git-Tag: accepted/tizen/unified/20190422.045933~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92daaffee502293162b03f74f923ad6ecf1075a0;p=platform%2Fupstream%2Fcoreclr.git Fix perf-prep to pass the branch name (#21911) For the release branches, we need to specify the branch name when pulling down coreclr test artifacts, and not just pull down from master. This change modifies perf-prep.sh to allow us to specify the branch name, which we will then port to the release branches. --- diff --git a/tests/scripts/perf-prep.sh b/tests/scripts/perf-prep.sh index 08db69b..2916a4b 100755 --- a/tests/scripts/perf-prep.sh +++ b/tests/scripts/perf-prep.sh @@ -7,7 +7,7 @@ function print_usage { echo 'Typical command line:' echo '' echo 'coreclr/tests/scripts/perf-perp.sh' - echo ' --branch="dotnet_coreclr"' + echo ' --repo="dotnet_coreclr"' echo '' echo 'Required arguments:' echo ' --branch= : branch where coreclr/corefx/test bits are copied from (e.g. dotnet_coreclr).' @@ -21,7 +21,8 @@ readonly EXIT_CODE_SUCCESS=0 # Script ran normally. # Argument variables perfArch="x64" perfConfig="Release" -perfBranch= +perfBranch="master" +perfRepo= throughput=0 nocorefx=0 @@ -32,6 +33,9 @@ do print_usage exit $EXIT_CODE_SUCCESS ;; + --repo=*) + perfRepo=${i#*=} + ;; --branch=*) perfBranch=${i#*=} ;; @@ -52,7 +56,8 @@ do esac done -perfBranch="dotnet_coreclr" +perfRepo="dotnet_coreclr" +echo "repo = $perfRepo" echo "branch = $perfBranch" echo "architecture = $perfArch" echo "configuration = $perfConfig" @@ -116,7 +121,7 @@ else if [ ! -d "bin/tests/Windows_NT.$perfArch.$perfConfig" ]; then echo "Downloading tests" - curl https://ci.dot.net/job/$perfBranch/job/master/job/release_windows_nt/lastSuccessfulBuild/artifact/bin/tests/tests.zip -o tests.zip + curl https://ci.dot.net/job/$perfRepo/job/$perfBranch/job/release_windows_nt/lastSuccessfulBuild/artifact/bin/tests/tests.zip -o tests.zip echo "unzip tests to ./bin/tests/Windows_NT.$perfArch.$perfConfig" unzip -q -o tests.zip -d ./bin/tests/Windows_NT.$perfArch.$perfConfig || exit 0 fi