Permalink
Browse files

Fix: Add recognizing skipped tests by jenkins integration server.

  • Loading branch information...
1 parent ffb7d67 commit 7dd6501e9750ad8118057b06eb00c65469ca9563 @matysek matysek committed Jun 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 PyInstaller/lib/junitxml/__init__.py
@@ -163,9 +163,9 @@ def stopTestRun(self):
"""
duration = self._duration(self._run_start)
self._stream.write('<testsuite errors="%d" failures="%d" name="" '
- 'tests="%d" time="%0.3f">\n' % (len(self.errors),
+ 'skips="%d" tests="%d" time="%0.3f">\n' % (len(self.errors),
len(self.failures) + len(getattr(self, "unexpectedSuccesses", ())),
- self.testsRun, duration))
+ len(self.skipped), self.testsRun, duration))
self._stream.write(''.join(self._results))
self._stream.write('</testsuite>\n')
@@ -198,7 +198,7 @@ def addSkip(self, test, reason):
pass
self._test_case_string(test)
self._results.append('>\n')
- self._results.append('<skip>%s</skip>\n</testcase>\n'% _escape_attr(reason))
+ self._results.append('<skipped message="%s"></skipped>\n</testcase>\n'% _escape_attr(reason))
def addUnexpectedSuccess(self, test):
try:

0 comments on commit 7dd6501

Please sign in to comment.