diff options
author | Julian Lettner <jlettner@apple.com> | 2019-10-16 22:20:28 +0000 |
---|---|---|
committer | Julian Lettner <jlettner@apple.com> | 2019-10-16 22:20:28 +0000 |
commit | 471dc1fb286ae7551da1d4a0349970b2a9491052 (patch) | |
tree | d73befd843ed5e5d64deef9039f1e68d3ea6ea26 | |
parent | 3c7d8792f12d6598ead6c3fb5f10d5a4be90ed4c (diff) | |
download | bcm5719-llvm-471dc1fb286ae7551da1d4a0349970b2a9491052.tar.gz bcm5719-llvm-471dc1fb286ae7551da1d4a0349970b2a9491052.zip |
[lit] Print warning if we fail to delete temp directory
llvm-svn: 375049
-rwxr-xr-x | llvm/utils/lit/lit/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py index 14258c58e13..4430e1689a1 100755 --- a/llvm/utils/lit/lit/main.py +++ b/llvm/utils/lit/lit/main.py @@ -223,7 +223,7 @@ def run_tests(tests, litConfig, opts, numTotalTests): startTime = time.time() try: - run_tests_in_tmp_dir(run_callback) + run_tests_in_tmp_dir(run_callback, litConfig) except KeyboardInterrupt: sys.exit(2) testing_time = time.time() - startTime @@ -231,7 +231,7 @@ def run_tests(tests, litConfig, opts, numTotalTests): display.finish() return testing_time -def run_tests_in_tmp_dir(run_callback): +def run_tests_in_tmp_dir(run_callback, litConfig): # Create a temp directory inside the normal temp directory so that we can # try to avoid temporary test file leaks. The user can avoid this behavior # by setting LIT_PRESERVES_TMP in the environment, so they can easily use @@ -260,7 +260,7 @@ def run_tests_in_tmp_dir(run_callback): shutil.rmtree(tmp_dir) except: # FIXME: Re-try after timeout on Windows. - pass + litConfig.warning("Failed to delete temp directory '%s'" % tmp_dir) def print_summary(tests, opts): byCode = {} |