Closed
Bug 847256
Opened 12 years ago
Closed 12 years ago
UnicodeEncodeError: 'ascii' codec can't encode character when running TBPL marionette tests
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox22 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
RESOLVED
FIXED
mozilla22
People
(Reporter: allstars.chh, Assigned: jgriffin)
References
Details
Attachments
(1 file)
872 bytes,
patch
|
mdas
:
review+
|
Details | Diff | Splinter Review |
When running try server for B2G marionette tests (Bug 797296), we met one UnicodeEncodeError, see [1], and
This test script will run some tests to verify the decoding of the raw PDU so some of them will be Japanese or Chinese characters.
We ran these tests well on our PCs however it failed in TBPL.
So it seems TBPL cannot accept characters encoded in Japanese or Chinese.
[1]: https://tbpl.mozilla.org/?tree=Try&rev=15684a551bbc
Assignee | ||
Comment 1•12 years ago
|
||
The error's stack trace is:
02:49:39 INFO - File "/home/cltbld/talos-slave/test/build/tests/marionette/marionette/runtests.py", line 137, in run
02:49:39 INFO - result.printLogs(test)
02:49:39 INFO - File "/home/cltbld/talos-slave/test/build/tests/marionette/marionette/runtests.py", line 68, in printLogs
02:49:39 INFO - self.stream.writeln(' '.join(line))
02:49:39 INFO - File "/usr/lib/python2.6/unittest.py", line 665, in writeln
02:49:39 INFO - if arg: self.write(arg)
02:49:39 INFO - UnicodeEncodeError: 'ascii' codec can't encode character u'\u30eb' in position 131: ordinal not in range(128)
Assignee | ||
Comment 2•12 years ago
|
||
Can you see if this patch fixes the problem?
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jgriffin
Reporter | ||
Comment 3•12 years ago
|
||
We have tried but currently TPBL met errors from Bug 847683,
will try your patch again once it's fixed.
Reporter | ||
Comment 4•12 years ago
|
||
Hi, Griffin
The patch seems okay, now the TPBL passed, without complaining EncodeError.
https://tbpl.mozilla.org/?tree=Try&rev=42ea5b7953b6
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 720948 [details] [diff] [review]
Handle non-ascii chars in log data
Seems Griffin is not around,
I sent r? to mdas on Griffin's behalf.
Attachment #720948 -
Flags: review?(mdas)
Reporter | ||
Comment 6•12 years ago
|
||
ping? Griffin and Das?
Comment 7•12 years ago
|
||
Comment on attachment 720948 [details] [diff] [review]
Handle non-ascii chars in log data
Review of attachment 720948 [details] [diff] [review]:
-----------------------------------------------------------------
My apologies, my patch review queue is a bit backed up. I'll land it in m-i/m-c
Attachment #720948 -
Flags: review?(mdas) → review+
Comment 8•12 years ago
|
||
Reporter | ||
Comment 9•12 years ago
|
||
Thank you :)
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Comment 11•12 years ago
|
||
status-b2g18:
--- → fixed
Assignee | ||
Comment 12•12 years ago
|
||
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•