Skip to content

Commit

Permalink
JUnit XML output: Include timezone information in XML
Browse files Browse the repository at this point in the history
JUnit writes local-time without a timezone by default.  This means that
JUnit XML parsers default to local-time.  The portal doesn't know what
timezone the user of stbt-rig wants so these timestamps can be interpreted
incorrectly.  This change includes timezone information in the XML output.

There is a small chance of incompatibilty caused by this change.  If you
experience this please get in contact at support@stb-tester.com.
  • Loading branch information
wmanley committed Sep 4, 2020
1 parent 81bd323 commit 97a332b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stbt_rig.py
Expand Up @@ -839,7 +839,8 @@ def list_results(self):

def list_results_xml(self):
r = self.portal._get(
'/api/v2/results.xml', params={'filter': 'job:%s' % self.job_uid})
'/api/v2/results.xml', params={'filter': 'job:%s' % self.job_uid,
'include_tz': 'true'})
r.raise_for_status()
return r.text

Expand Down

0 comments on commit 97a332b

Please sign in to comment.