lava-dispatcher exits when test failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
when the 0xbench test failed to run, lava-dispatcher will exit with run the test after 0xbench.
because lava-dispatcher failed to parse the error.
the job http://
the exception information:
Traceback (most recent call last):
File "/srv/lava/
job.run()
File "/srv/lava/
(cmd[
TypeError: coercing to Unicode: need string or buffer, OperationFailed found
with the following test script, this error can reproduce.
(pip)18:52:56 liuyq:lava-
#!/usr/bin/python
from lava_dispatcher
try:
raise OperationFailed
"value: %s" % (test_name, session.dev_name, rc))
except Exception as err:
pass
finally:
err_msg = unicode(err, 'ascii', 'replace')
print 'err_msg=%s' % err_msg
(pip)18:53:00 liuyq:lava-
Traceback (most recent call last):
File "/tmp/test.py", line 11, in <module>
err_msg = unicode(err, 'ascii', 'replace')
TypeError: coercing to Unicode: need string or buffer, exceptions.
(pip)18:53:16 liuyq:lava-
Related branches
- Zygmunt Krynicki (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedlava_dispatcher/job.py (+1/-1)
Changed in lava-dispatcher: | |
status: | New → Fix Released |
milestone: | none → 2012.02 |