[Lldb-commits] [lldb] 031554e - Reland "[test] Exit with an error if no tests are run."
Jordan Rupprecht via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 28 14:29:36 PDT 2020
Author: Jordan Rupprecht
Date: 2020-08-28T14:27:37-07:00
New Revision: 031554ed46c8540e8efdf5dde4c10ddd156ac1fa
URL: https://github.com/llvm/llvm-project/commit/031554ed46c8540e8efdf5dde4c10ddd156ac1fa
DIFF: https://github.com/llvm/llvm-project/commit/031554ed46c8540e8efdf5dde4c10ddd156ac1fa.diff
LOG: 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.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/dotest.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 870b85ef4c4b..c96840024b8a 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(
More information about the lldb-commits
mailing list