summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/xunit_formatter.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/xunit_formatter.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/xunit_formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/xunit_formatter.py b/lldb/packages/Python/lldbsuite/test/xunit_formatter.py
index 35fdba449a0..41eac97b5c8 100644
--- a/lldb/packages/Python/lldbsuite/test/xunit_formatter.py
+++ b/lldb/packages/Python/lldbsuite/test/xunit_formatter.py
@@ -484,8 +484,8 @@ class XunitFormatter(ResultsFormatter):
"""
# Get elapsed time.
- test_class = test_event["test_class"]
- test_name = test_event["test_name"]
+ test_class = test_event.get("test_class", "<no_class>")
+ test_name = test_event.get("test_name", "<no_test_method>")
event_time = test_event["event_time"]
time_taken = self.elapsed_time_for_test(
test_class, test_name, event_time)
OpenPOWER on IntegriCloud