Fix subunit generation in py35
Change-Id: Ie69c7777de7b177be1bb8bbb3ff7c09ac9bc5ba3
This commit is contained in:
parent
90788ea5aa
commit
62bd121a8d
@ -123,10 +123,11 @@ def save_to_subunit(sla_records, subunit_filename):
|
||||
test_id = _get_location(item.record) + ':' + item.expression
|
||||
|
||||
if item.state != sla.STATE_TRUE:
|
||||
file_bytes = yaml.safe_dump(
|
||||
item.record, default_flow_style=False).encode('utf8')
|
||||
output.status(test_id=test_id, file_name='results',
|
||||
mime_type='text/plain; charset="utf8"', eof=True,
|
||||
file_bytes=yaml.safe_dump(
|
||||
item.record, default_flow_style=False))
|
||||
file_bytes=file_bytes)
|
||||
|
||||
output.status(test_id=test_id,
|
||||
test_status=state2subunit.get(item.state, 'skip'))
|
||||
|
Loading…
Reference in New Issue
Block a user