summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-09-03 23:37:18 -0500
committerZachary Ware <zachary.ware@gmail.com>2015-09-03 23:37:18 -0500
commit7ab6cb44e46ce36e8cbb7c6fcfee032c638c8f7b (patch)
tree4eed33874f8272628ebb1f20a8d0c833f950f548 /Tools
parentc97e18ec6421491e40dcebb3b0dd13cbe1bcd9d5 (diff)
downloadcpython-git-7ab6cb44e46ce36e8cbb7c6fcfee032c638c8f7b.tar.gz
Allow PCbuild\rt.bat to accept unlimited arguments for regrtest.
This makes it possible to pass more than 7 tests by name through Tools\buildbot\test.bat
Diffstat (limited to 'Tools')
-rw-r--r--Tools/buildbot/test.bat26
1 files changed, 15 insertions, 11 deletions
diff --git a/Tools/buildbot/test.bat b/Tools/buildbot/test.bat
index 58d5d9246b..b9dde01113 100644
--- a/Tools/buildbot/test.bat
+++ b/Tools/buildbot/test.bat
@@ -1,15 +1,19 @@
-@rem Used by the buildbot "test" step.
-@setlocal
+@echo off
+rem Used by the buildbot "test" step.
+setlocal
-@set here=%~dp0
-@set rt_opts=-q -d
+set here=%~dp0
+set rt_opts=-q -d
+set regrtest_args=
:CheckOpts
-@if '%1'=='-x64' (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
-@if '%1'=='-d' (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
-@if '%1'=='-O' (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
-@if '%1'=='-q' (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
-@if '%1'=='+d' (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
-@if '%1'=='+q' (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
+if "%1"=="-x64" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
+if "%1"=="-d" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
+if "%1"=="-O" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
+if "%1"=="-q" (set rt_opts=%rt_opts% %1) & shift & goto CheckOpts
+if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
+if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
+if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
-call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW %1 %2 %3 %4 %5 %6 %7 %8 %9
+echo on
+call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW %regrtest_args%