diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-04-24 13:22:00 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-04-24 20:23:11 +0100 |
commit | 8c8c62e7fc413194b01bf7dd5b3ad9e3c314a988 (patch) | |
tree | 06a2c254470895a7c4606693e039c7604127e3d8 | |
parent | 4c0ff15602d186a2c910858ace19589d0d1eb2f9 (diff) |
junit: Results' stdout and stderr is now in `out` in `err`.
-rwxr-xr-x | piglit-summary-junit.py | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/piglit-summary-junit.py b/piglit-summary-junit.py index 35641f444..6dba15273 100755 --- a/piglit-summary-junit.py +++ b/piglit-summary-junit.py @@ -62,14 +62,35 @@ class Writer: duration = None try: try: - self.report.addStdout(result['command'] + '\n') + command = result['command'] except KeyError: pass + else: + self.report.addStdout(command + '\n') + + try: + stdout = result['out'] + except KeyError: + pass + else: + if stdout: + self.report.addStdout(stdout + '\n') try: - self.report.addStderr(result['info']) + stderr = result['err'] except KeyError: pass + else: + if stderr: + self.report.addStderr(stderr + '\n') + + try: + returncode = result['returncode'] + except KeyError: + pass + else: + if returncode: + self.report.addStderr('returncode = %s\n' % returncode) success = result.get('result') if success in (status.PASS, status.WARN): |