aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2020-08-28 14:27:37 -0700
committerJordan Rupprecht <rupprecht@google.com>2020-08-28 14:27:37 -0700
commit031554ed46c8540e8efdf5dde4c10ddd156ac1fa (patch)
treeaebbcc8579a764fd5c5089bfb2021ffc79cca229 /lldb/packages/Python/lldbsuite/test/dotest.py
parent56fbd66e9f9fd75a892af40073dee60858b3c5d4 (diff)
downloadllvm-031554ed46c8540e8efdf5dde4c10ddd156ac1fa.zip
llvm-031554ed46c8540e8efdf5dde4c10ddd156ac1fa.tar.gz
llvm-031554ed46c8540e8efdf5dde4c10ddd156ac1fa.tar.bz2
Reland "[test] Exit with an error if no tests are run."
This reverts commit a06c28df3e8c85ceb665d3d9a1ebc2853dfd87a9 (reland adb5c23f8c0d60eeec41dcbe21d1b26184e1c97d). The issue with PExpect tests on Windows should be fixed with e5e05ecf65aba836802154279efbc8cbce6fe2ea.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 870b85e..c968400 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -1019,6 +1019,10 @@ def run_suite():
(configuration.suite.countTestCases(),
configuration.suite.countTestCases() != 1 and "s" or ""))
+ if configuration.suite.countTestCases() == 0:
+ logging.error("did not discover any matching tests")
+ exitTestSuite(1)
+
# Invoke the test runner.
if configuration.count == 1:
result = unittest2.TextTestRunner(