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 |