We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1231a2c commit f32ccc2Copy full SHA for f32ccc2
llvm/utils/lit/lit/formats/googletest.py
@@ -228,15 +228,16 @@ def remove_gtest(tests):
228
selected_tests = remove_gtest(selected_tests)
229
has_failure = False
230
for test in gtests:
231
- if test.isFailure():
232
- has_failure = True
233
-
234
- # In case gtest has bugs such that no JSON file was emitted.
+ # In case gtest has bugs such that no JSON file was emitted. Or, a selected
+ # test is not found.
235
if not os.path.exists(test.gtest_json_file):
236
selected_tests.append(test)
237
discovered_tests.append(test)
238
continue
239
+ if test.isFailure():
+ has_failure = True
240
+
241
start_time = test.result.start or 0.0
242
243
# Load json file to retrieve results.
0 commit comments