Bug 1048423 - Don't retain a default for the 'expected' field of objects logged with log_raw.;r=jgraham

This commit is contained in:
Chris Manchester 2014-08-04 20:29:12 -04:00
parent 24210e1f69
commit 1fea41be7d

View File

@ -144,7 +144,8 @@ class StructuredLogger(object):
if action in ("test_status", "test_end"):
if (data["expected"] == data["status"] or
data["status"] == "SKIP"):
data["status"] == "SKIP" or
"expected" not in raw_data):
del data["expected"]
self._handle_log(data)