[Jython-checkins] jython: Update build target regrtest-travis to exclude problematic tests.
jeff.allen
jython-checkins at python.org
Sun Mar 19 12:24:46 EDT 2017
https://hg.python.org/jython/rev/44bf97c4eb3e
changeset: 8067:44bf97c4eb3e
user: Jeff Allen <ja.py at farowl.co.uk>
date: Sun Mar 19 14:08:26 2017 +0000
summary:
Update build target regrtest-travis to exclude problematic tests.
The intention is to get clean-running build bots. As an aid, this change
includes confirmation of some platform details from regrtest itself.
files:
Lib/test/regrtest.py | 16 ++++++++++++++++
build.xml | 12 ++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -398,6 +398,22 @@
failures.keep_only(tests)
skips.keep_only(tests)
+ # Output some platform information. Loosely based on CPython 3.6 regrtest.
+ if (verbose or len(tests)>1) and not (quiet or single):
+ # Print basic platform information
+ for t in sys.version.splitlines():
+ print "==", t
+ print "== platform:", sys.platform
+ print "== encodings: stdin=%s, stdout=%s, FS=%s" % (
+ sys.stdin.encoding, sys.stdout.encoding,
+ sys.getfilesystemencoding())
+ try:
+ import locale
+ print "== locale: default=%s, actual=%s" % (
+ locale.getdefaultlocale(), locale.getlocale())
+ except ImportError:
+ pass
+
for test in tests:
if not quiet:
print test
diff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
@@ -1116,11 +1116,18 @@
<arg value="${junit.reports}"/>
<arg value="--use"/>
<arg value="network,subprocess"/>
+ <!-- Exclude particular tests troublesome on the build bots -->
+ <arg value="--exclude"/>
+ <arg value="test_select_new"/>
+ <arg value="test_socket"/>
+ <arg value="test_ssl"/>
</exec>
</target>
<target name="regrtest-windows-travis" if="os.family.windows">
<exec executable="${dist.dir}/bin/jython.exe" failonerror="true">
+ <env key="JAVA_OPTS" value="-Duser.language=en -Duser.region=US"/>
+ <arg value="${dist.dir}/Lib/test/regrtest.py"/>
<arg value="-w"/> <!-- re-run failed tests in verbose mode -->
<!-- Only run the tests that are expected to work on Jython -->
<arg value="--expected"/>
@@ -1128,6 +1135,11 @@
<arg value="${junit.reports}"/>
<arg value="--use"/>
<arg value="network,subprocess"/>
+ <!-- Exclude particular tests troublesome on the build bots -->
+ <arg value="--exclude"/>
+ <arg value="test_select_new"/>
+ <arg value="test_socket"/>
+ <arg value="test_ssl"/>
</exec>
</target>
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list