]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
buildbot: pass --fail-env-changed to regrtest (#2509)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 30 Jun 2017 14:44:08 +0000 (16:44 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2017 14:44:08 +0000 (16:44 +0200)
Make tests fail if a test altered the environment.

Makefile.pre.in
Tools/buildbot/test.bat

index ee1cd4a0280ed4b2f5247c70daae585e9fe87a20..5602c165463af6ecf4d1dcb34e2161f4b5f5941e 100644 (file)
@@ -1035,7 +1035,7 @@ buildbottest:     build_all platform
                -@if which pybuildbot.identify >/dev/null 2>&1; then \
                        pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
                fi
-               $(TESTRUNNER) -j 1 -u all -W --slowest --timeout=$(TESTTIMEOUT) $(TESTOPTS)
+               $(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --timeout=$(TESTTIMEOUT) $(TESTOPTS)
 
 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
                test_multibytecodec test_urllib2_localnet test_itertools \
index 0b3a3091c1e46ed5b090d4129370b06844f95ce0..40ffc7efdd2d6c6efb68e9d228a1a9939b2d3677 100644 (file)
@@ -16,4 +16,4 @@ if "%1"=="+q" (set rt_opts=%rt_opts:-q=%) & shift & goto CheckOpts
 if NOT "%1"=="" (set regrtest_args=%regrtest_args% %1) & shift & goto CheckOpts
 
 echo on
-call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 %regrtest_args%
+call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args%