autopilot crashes on failed test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Incomplete
|
Medium
|
Unassigned |
Bug Description
With unity next, when a test fails, autopilot prints the following traceback and stops executing further tests. From what I've understood from this trace is that it ties to collect the applications debug print and bails out when there are non base ascii characters in it.
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
run_tests(args)
File "/usr/bin/
success = runner.
File "/usr/bin/
return test.run(result)
File "/usr/lib/
test(result)
File "/usr/lib/
return self.run(*args, **kwds)
File "/usr/lib/
return super(TestWithS
File "/usr/lib/
return self.__
File "/usr/lib/
return self._run_
File "/usr/lib/
return self._run_
File "/usr/lib/
handler(
File "/usr/lib/
result.
File "/usr/lib/
return self.decorated.
File "/usr/lib/
self.
File "/usr/lib/
return _details_
File "/usr/lib/
text = content.
File "/usr/lib/
return _u('').
File "/usr/lib/
for bytes in self.iter_bytes():
File "/usr/lib/
return self._get_bytes()
File "/usr/lib/
return Content(UTF8_TEXT, lambda: [text.encode(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 7531: ordinal not in range(128)
Changed in autopilot: | |
status: | New → Triaged |
Changed in autopilot: | |
milestone: | none → 1.3 |
Changed in autopilot: | |
milestone: | 1.3 → 1.3.1 |
exporting LANG=C before executing the tests seems to work around the issue.
The machines showing this issue have a default of LANG=en_US.UTF-8