[all-commits] [llvm/llvm-project] adb5c2: [test] Exit with an error if no tests are run.
Jordan Rupprecht via All-commits
all-commits at lists.llvm.org
Mon Aug 3 16:32:50 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: adb5c23f8c0d60eeec41dcbe21d1b26184e1c97d
https://github.com/llvm/llvm-project/commit/adb5c23f8c0d60eeec41dcbe21d1b26184e1c97d
Author: Jordan Rupprecht <rupprecht at google.com>
Date: 2020-08-03 (Mon, 03 Aug 2020)
Changed paths:
M lldb/packages/Python/lldbsuite/test/dotest.py
Log Message:
-----------
[test] Exit with an error if no tests are run.
If the test suite is misconfigured when it's run (a bad regexp, wrong test directory, etc.), the test suite may not discover any tests. When this happens, the test runner exits happily because no tests failed:
```
Ran 0 tests in 0.000s
RESULT: PASSED (0 passes, 0 failures, 0 errors, 0 skipped, 0 expected failures, 0 unexpected successes)
```
Change this to return an error so the misconfiguration can be more easily detected. Verified that `lldb-dotest -p TestDoesNotExist.py` successfully fails.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D85169
More information about the All-commits
mailing list