]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109566: Run GHA and buildbot tests with --fail-rerun (#109567)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Sep 2023 13:50:27 +0000 (15:50 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Sep 2023 13:50:27 +0000 (15:50 +0200)
Makefile.pre.in
PCbuild/rt.bat
Tools/buildbot/test.bat

index 35f254508579bf05d1ce59b983ee5ce7eea895d4..7b03dd233e623183af69b823cf44eb207006eb50 100644 (file)
@@ -1887,7 +1887,7 @@ buildbottest: all
                -@if which pybuildbot.identify >/dev/null 2>&1; then \
                        pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
                fi
-               $(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --timeout=$(TESTTIMEOUT) $(TESTOPTS)
+               $(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --fail-rerun --timeout=$(TESTTIMEOUT) $(TESTOPTS)
 
 # Like testall, but run Python tests with HOSTRUNNER directly.
 .PHONY: hostrunnertest
index 29813c5a87fca76d628ecdb1a6c3b86fe3c58ac3..cd32a386f0366beae92c1e5546c5071a4daf2e7f 100644 (file)
@@ -32,7 +32,7 @@ set pcbuild=%~dp0
 set suffix=
 set qmode=
 set dashO=
-set regrtestargs=
+set regrtestargs--fail-env-changed --fail-rerun
 set exe=
 
 :CheckOpts
index 25c796a60e173d289267aabcb72411e5651ace3c..c1b2605a4b2c7ea418cf1a9da9eb4daa48714609 100644 (file)
@@ -23,7 +23,7 @@ if "%PROCESSOR_ARCHITECTURE%"=="ARM" if "%arm32_ssh%"=="true" goto NativeExecuti
 if "%arm32_ssh%"=="true" goto :Arm32Ssh
 
 :NativeExecution
-call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args%
+call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 %regrtest_args%
 exit /b %ERRORLEVEL%
 
 :Arm32Ssh
@@ -35,7 +35,7 @@ if NOT "%REMOTE_PYTHON_DIR:~-1,1%"=="\" (set REMOTE_PYTHON_DIR=%REMOTE_PYTHON_DI
 
 set TEMP_ARGS=--temp %REMOTE_PYTHON_DIR%temp
 
-set rt_args=%rt_opts% %dashU% -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args% %TEMP_ARGS%
+set rt_args=%rt_opts% %dashU% -rwW --slowest --timeout=1200 %regrtest_args% %TEMP_ARGS%
 ssh %SSH_SERVER% "set TEMP=%REMOTE_PYTHON_DIR%temp& cd %REMOTE_PYTHON_DIR% & %REMOTE_PYTHON_DIR%PCbuild\rt.bat" %rt_args%
 set ERR=%ERRORLEVEL%
 scp %SSH_SERVER%:"%REMOTE_PYTHON_DIR%test-results.xml" "%PYTHON_SOURCE%\test-results.xml"