]> granicus.if.org Git - llvm/commit
[lit] Try to exit more cleanly
authorReid Kleckner <rnk@google.com>
Tue, 2 May 2017 17:45:16 +0000 (17:45 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 2 May 2017 17:45:16 +0000 (17:45 +0000)
commit4f77dbb38b2727fa9bb9968c0110980c008c4a94
tree3d9e3cdf4e8f15f379f6c7f98afbbf21b1f0aee4
parentac4b289dcebccbc6587779aff372f55b32010c8d
[lit] Try to exit more cleanly

If all jobs complete successfully, use pool.close() instead of
pool.terminate() before waiting for the workers. Zach Turner reported
that he was getting "access denied" exceptions from pool.terminate().

Make the workers abort immediately without printing to stderr when they
are interrupted.

Finally, catch exceptions when attempting to remove our temporary
testing directory. On abnormal exit, there can often be open handles
that haven't been cleaned up yet.

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