]> granicus.if.org Git - llvm/commit
[lit] Small cleanups in main.py
authorJulian Lettner <jlettner@apple.com>
Fri, 11 Oct 2019 21:57:09 +0000 (21:57 +0000)
committerJulian Lettner <jlettner@apple.com>
Fri, 11 Oct 2019 21:57:09 +0000 (21:57 +0000)
commitd5520c67d7b3a1db943d093dc76ba795df314109
tree37084b039c9ff29f9095f5e0dad18bfdf6853c18
parent3087d14c03f943e931405de988e16f412b9d2f9b
[lit] Small cleanups in main.py

* Extract separate function for running tests from main
* Push single-usage imports to point of usage
* Remove unnecessary sys.exit(0) calls

Reviewed By: rnk

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374602 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/main.py