[llvm] r375049 - [lit] Print warning if we fail to delete temp directory
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 16 15:20:28 PDT 2019
Author: yln
Date: Wed Oct 16 15:20:28 2019
New Revision: 375049
URL: http://llvm.org/viewvc/llvm-project?rev=375049&view=rev
Log:
[lit] Print warning if we fail to delete temp directory
Modified:
llvm/trunk/utils/lit/lit/main.py
Modified: llvm/trunk/utils/lit/lit/main.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=375049&r1=375048&r2=375049&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/main.py (original)
+++ llvm/trunk/utils/lit/lit/main.py Wed Oct 16 15:20:28 2019
@@ -223,7 +223,7 @@ def run_tests(tests, litConfig, opts, nu
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, nu
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 = {}
More information about the llvm-commits
mailing list