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

Unified Diff: scripts/slave/unittests/expect_tests/type_definitions.py

Issue 240053005: Various minor improvements to recipe_simulation_test.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 8 months 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 | « scripts/slave/unittests/expect_tests/pipeline.py ('k') | scripts/slave/unittests/recipe_simulation_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/unittests/expect_tests/type_definitions.py
diff --git a/scripts/slave/unittests/expect_tests/type_definitions.py b/scripts/slave/unittests/expect_tests/type_definitions.py
index 4959876dcf9dbea4d22909848c25785391295301..913d26f363ed57490baceaea204af90d045e85f7 100644
--- a/scripts/slave/unittests/expect_tests/type_definitions.py
+++ b/scripts/slave/unittests/expect_tests/type_definitions.py
@@ -8,6 +8,7 @@ from collections import namedtuple
UnknownError = namedtuple('UnknownError', 'message')
TestError = namedtuple('TestError', 'test message')
+NoMatchingTestsError = namedtuple('NoMatchingTestsError', '')
Result = namedtuple('Result', 'data')
class ResultStageAbort(Exception):
@@ -169,6 +170,11 @@ class Handler(object):
"""
return getattr(self, 'handle_' + type(obj).__name__, self.__unknown)(obj)
+ def handle_NoMatchingTestsError(self, _error):
+ print 'No tests found that match the glob: %s' % (
+ ' '.join(self.opts.test_glob),)
+ return Failure()
+
def __unknown(self, obj):
if self.opts.verbose:
print 'UNHANDLED:', obj
« no previous file with comments | « scripts/slave/unittests/expect_tests/pipeline.py ('k') | scripts/slave/unittests/recipe_simulation_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698