[lit] Set --single-process for single tests and --threads=1
commit75b1901bac12016a63d95ac3e9da83a2f0844653
authorJulian Lettner <jlettner@apple.com>
Thu, 14 Feb 2019 22:30:07 +0000 (14 22:30 +0000)
committerJulian Lettner <jlettner@apple.com>
Thu, 14 Feb 2019 22:30:07 +0000 (14 22:30 +0000)
tree9a36e3bb7a02f577cf0e5bae6633a0ea6c27d1d7
parent217f03f322c2376078d9e0f5d80ef1b46acea279
[lit] Set --single-process for single tests and --threads=1

Summary:
Automatically upgrade debugging experience (single process, no thread
pool) when:
  1) we only run a single test
  2) user specifies `-j1`

Details:
Fix `--max-failures` in single process mode. Option did not have an
effect in single process mode.

Add display feedback for single process mode. Adapted test.

Improve argument checking (require positive integers).

`--single-process` is now essentially an alias for `-j1`. Should we
remove it?

Reviewers: rnk

Differential Revision: https://reviews.llvm.org/D58249

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354068 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/LitConfig.py
utils/lit/lit/discovery.py
utils/lit/lit/main.py
utils/lit/lit/run.py
utils/lit/tests/max-failures.py
utils/lit/tests/unit/TestRunner.py