We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a2e31 commit 4c99b09Copy full SHA for 4c99b09
openhtf/util/text.py
@@ -98,6 +98,10 @@ def _GetTestOutcomeHeadline(record: test_record.TestRecord,
98
Returns:
99
Text headline of the test result.
100
"""
101
+
102
+ if record.outcome is None:
103
+ return 'No Outcome Set'
104
105
# TODO(b/70517332): Pytype currently doesn't properly support the functional
106
# API of enums: https://github.com/google/pytype/issues/459. Remove
107
# disabling pytype once fixed.
@@ -200,7 +204,8 @@ def StringFromPhaseRecord(
200
204
Text summary of the phase record.
201
205
202
206
output = []
203
-
207
+ if phase.outcome is None:
208
209
text = 'Phase {}\n+ Outcome: {} Result: {}'.format(
210
phase.name, phase.outcome.name,
211
StringFromPhaseExecutionOutcome(phase.result))
0 commit comments