Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 086a1b9

Browse filesBrowse files
author
Paul Monson
committed
fixes for test_regrtest
1 parent 69c40d7 commit 086a1b9
Copy full SHA for 086a1b9

File tree

Expand file treeCollapse file tree

3 files changed

+13
-4
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+13
-4
lines changed

‎Lib/test/test_regrtest.py

Copy file name to clipboardExpand all lines: Lib/test/test_regrtest.py
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,10 @@ def test_tools_buildbot_test(self):
616616
# Tools\buildbot\test.bat
617617
script = os.path.join(ROOT_DIR, 'Tools', 'buildbot', 'test.bat')
618618
test_args = ['--testdir=%s' % self.tmptestdir]
619-
if platform.architecture()[0] == '64bit':
620-
test_args.append('-x64') # 64-bit build
619+
if platform.machine() == 'AMD64':
620+
test_args.append('-x64') # 64-bit Intel build
621+
if platform.machine() == 'ARM':
622+
test_args.append('-arm32') # 32-bit ARM build
621623
if not Py_DEBUG:
622624
test_args.append('+d') # Release build, use python.exe
623625
self.run_batch(script, *test_args, *self.tests)
@@ -629,8 +631,10 @@ def test_pcbuild_rt(self):
629631
if not os.path.isfile(script):
630632
self.skipTest(f'File "{script}" does not exist')
631633
rt_args = ["-q"] # Quick, don't run tests twice
632-
if platform.architecture()[0] == '64bit':
633-
rt_args.append('-x64') # 64-bit build
634+
if platform.machine() == 'AMD64':
635+
rt_args.append('-x64') # 64-bit Intel build
636+
if platform.machine() == 'ARM':
637+
rt_args.append('-arm32') # 32-bit ARM build
634638
if Py_DEBUG:
635639
rt_args.append('-d') # Debug build, use python_d.exe
636640
self.run_batch(script, *rt_args, *self.regrtest_args, *self.tests)

‎Tools/buildbot/remoteDeploy.bat

Copy file name to clipboardExpand all lines: Tools/buildbot/remoteDeploy.bat
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DI
2525
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%temp"
2626
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%Modules"
2727
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%PC"
28+
%SSH% %SSH_SERVER% "md %REMOTE_PYTHON_DIR%Tools"
2829
for /f "USEBACKQ" %%i in (`dir PCbuild\*.bat /b`) do @%SCP% PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild"
2930
for /f "USEBACKQ" %%i in (`dir PCbuild\*.py /b`) do @%SCP% PCBuild\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild"
3031
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.exe /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32"
3132
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.pyd /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32"
3233
for /f "USEBACKQ" %%i in (`dir PCbuild\arm32\*.dll /b`) do @%SCP% PCBuild\arm32\%%i "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PCBuild\arm32"
3334
%SCP% -r "%PYTHON_SOURCE%Include" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Include"
3435
%SCP% -r "%PYTHON_SOURCE%Lib" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Lib"
36+
%SCP% -r "%PYTHON_SOURCE%Tools\buildbot" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Tools\buildbot"
37+
%SCP% -r "%PYTHON_SOURCE%Tools\scripts" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Tools\scripts"
3538
%SCP% "%PYTHON_SOURCE%Modules\Setup" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Modules"
3639
%SCP% "%PYTHON_SOURCE%PC\pyconfig.h" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%PC"
3740

‎Tools/buildbot/test.bat

Copy file name to clipboardExpand all lines: Tools/buildbot/test.bat
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ if "%1"=="+d" (set rt_opts=%rt_opts:-d=%) & shift & goto CheckOpts
1717
if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
1818
if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
1919

20+
if "%PROCESSOR_ARCHITECTURE%"=="ARM" if "%arm32_ssh%"=="true" goto NativeExecution
2021
if "%arm32_ssh%"=="true" goto :Arm32Ssh
2122

23+
:NativeExecution
2224
call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args%
2325
exit /b %ERRORLEVEL%
2426

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.