Merge lp:~canonical-platform-qa/qa-jenkins-jobs/fix-subunit-unicode into lp:qa-jenkins-jobs

Proposed by Allan LeSage
Status: Merged
Approved by: Max Brustkern
Approved revision: 164
Merged at revision: 164
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/fix-subunit-unicode
Merge into: lp:qa-jenkins-jobs
Diff against target: 12 lines (+2/-0)
1 file modified
jobs/ubuntu-system-tests/subunit-to-junit.sh (+2/-0)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/fix-subunit-unicode
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
platform-qa-bot continuous-integration Approve
Review via email: mp+300668@code.launchpad.net

Commit message

Set ust Python io to UTF-8 to prevent subunit2junitxml encoding errors.

Description of the change

Getting some rare unicode-encoding errors during subunit2junitxml processing, this apparently fixes.

To post a comment you must log in.
Revision history for this message
platform-qa-bot (platform-qa-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Max Brustkern (nuclearbob) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/ubuntu-system-tests/subunit-to-junit.sh'
2--- jobs/ubuntu-system-tests/subunit-to-junit.sh 2016-07-08 20:31:40 +0000
3+++ jobs/ubuntu-system-tests/subunit-to-junit.sh 2016-07-20 21:28:55 +0000
4@@ -4,6 +4,8 @@
5 pip3 install python-subunit
6 pip3 install junitxml
7
8+# sometimes get unicode-encoding errors; -o option apparently broken in this env :/
9+export PYTHONIOENCODING=utf-8
10 subunit2junitxml $WORKSPACE/results/artifacts/test-results.subunit > $WORKSPACE/results/artifacts/test-results.xml || true
11
12 deactivate # our virtualenv

Subscribers

People subscribed via source and target branches