Author: Ronny Pfannschmidt <[email protected]>
Branch: pytest
Changeset: r53118:017c3d40ee44
Date: 2012-03-02 17:08 +0100
http://bitbucket.org/pypy/pypy/changeset/017c3d40ee44/
Log: testrunner: also generate junitxml for each test driver instance
this is meant to give stdout/err later for use in the buildbot
diff --git a/testrunner/runner.py b/testrunner/runner.py
--- a/testrunner/runner.py
+++ b/testrunner/runner.py
@@ -107,7 +107,10 @@
do_dry_run=False, timeout=None,
_win32=(sys.platform=='win32')):
args = interp + test_driver
- args += ['-p', 'resultlog', '--resultlog=%s' % logfname, test]
+ args += ['-p', 'resultlog',
+ '--resultlog=%s' % logfname,
+ '--junitxml=%s.junit' % logfname,
+ test]
args = map(str, args)
interp0 = args[0]
diff --git a/testrunner/test/test_runner.py b/testrunner/test/test_runner.py
--- a/testrunner/test/test_runner.py
+++ b/testrunner/test/test_runner.py
@@ -119,6 +119,8 @@
'driver', 'darg',
'-p', 'resultlog',
'--resultlog=LOGFILE',
+ '--junitxml=LOGFILE.junit',
+
'test_one']
assert self.called == (expected, '/wd', 'out', 'secs')
@@ -136,8 +138,9 @@
'driver', 'darg',
'-p', 'resultlog',
'--resultlog=LOGFILE',
+ '--junitxml=LOGFILE.junit',
'test_one']
-
+ assert self.called[0] == expected
assert self.called == (expected, '/wd', 'out', 'secs')
assert res == 0
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit