adt-run failed with "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 46" when stderr contains non-ascii charaters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When stderr contains non-ascii characters adt-run fails with:
adt-run: trace: & dsc0t-build: - - - - - - - - - - results - - - - - - - - - -
adt-run: unexpected, exceptional, error:
Traceback (most recent call last):
File "/usr/bin/adt-run", line 1860, in main
process_
File "/usr/bin/adt-run", line 1836, in process_actions
run_
File "/usr/bin/adt-run", line 1095, in run_tests
t.run(tree)
File "/usr/bin/adt-run", line 1194, in run
t.reportfai
File "/usr/bin/adt-run", line 1119, in reportfail
report(t.what, 'FAIL ' + m)
File "/usr/bin/adt-run", line 167, in report
preport('%-20s %s' % (tname, result))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 46: ordinal not in range(128)
In this particular test, the content of stderr was:
"""
gitest.c: In function ‘main’:
gitest.c:10:5: warning: ‘g_type_init’ is deprecated (declared at /usr/include/
"""
(note the unicode quotes)
ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: autopkgtest 2.2.3ubuntu3
ProcVersionSign
Uname: Linux 3.7.0-7-generic x86_64
ApportVersion: 2.8-0ubuntu1
Architecture: amd64
Date: Wed Jan 16 14:44:48 2013
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: autopkgtest
UpgradeStatus: Upgraded to raring on 2012-01-31 (350 days ago)
Changed in autopkgtest (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
This bug was fixed in the package autopkgtest - 2.3
---------------
autopkgtest (2.3) unstable; urgency=low
* runner/adt-run.1: Fix bad "affect modify" wording. (LP: #1199500) /launchpad. net/auto- package- testing, Jenkins, satisfydepends- classic. (LP: #1065874) expanduser( ) instead.
* Drop hosts/chinstrap. We haven't actually used this in many years, it has
been replaced with https:/
and blocking migration to release until tests pass. (LP: #381210)
* Promote apt-utils from Recommends to Depends:, to avoid test failures due
to not finding apt-ftparchive. (LP: #1065874)
* Promote pbuilder from Recommends: to Depends:, as we always call
pbuilder-
* runner/adt-run: Stop explicitly checking for $HOME (with broken error
message) when giving --gnupg-home, use os.path.
(LP: #1065873)
* runner/adt-run: Fix timeout --help output.
* runner/adt-run: Fix bomb() to clean up the testbed before removing it.
Afterwards (in cleanup()) we don't have a testbed object any more to run
commands in. (LP: #1157292)
* runner/adt-run: Fix UnicodeDecodeError crash if stderr contains non-ASCII
characters. (LP: #1100283)
* Add "allow-stderr" restriction for tests where re-routing or disabling
stderr is impractical. (LP: #1197005)
* runner-adt-run: Support architecture specifiers in Depends: field.
(LP: #1165128)
* runner/adt-run: Remove/fix some unused variables, spotted by pyflakes.
-- Martin Pitt <email address hidden> Fri, 19 Jul 2013 11:58:15 +0200