Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1403)

Unified Diff: expect_tests/type_definitions.py

Issue 731723002: Don't return failure if no tests. (Closed) Base URL: https://chromium.googlesource.com/infra/testing/expect_tests@master
Patch Set: Address iannucci's comment. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: expect_tests/type_definitions.py
diff --git a/expect_tests/type_definitions.py b/expect_tests/type_definitions.py
index bc4bdd5dbb53bf12c8671a5c1b0eecc6dfba4349..9923249bd8ad0909373d622b244ccf0665d5928c 100644
--- a/expect_tests/type_definitions.py
+++ b/expect_tests/type_definitions.py
@@ -480,7 +480,8 @@ class Handler(object):
handler = cls.ResultStageHandler(opts)
try:
for obj in objects:
- error |= isinstance(handler(obj), Failure)
+ if not isinstance(obj, NoMatchingTestsError):
+ error |= isinstance(handler(obj), Failure)
except ResultStageAbort:
aborted = True
handler.finalize(aborted)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698