[PATCH] D79861: Fixed a problem removing temp files

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 11:58:41 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG72416b136ec6: Fixed a problem removing temp files (authored by PeteSteinfeld).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79861/new/

https://reviews.llvm.org/D79861

Files:
  llvm/utils/lit/lit/main.py


Index: llvm/utils/lit/lit/main.py
===================================================================
--- llvm/utils/lit/lit/main.py
+++ llvm/utils/lit/lit/main.py
@@ -247,9 +247,8 @@
             try:
                 import shutil
                 shutil.rmtree(tmp_dir)
-            except:
-                # FIXME: Re-try after timeout on Windows.
-                lit_config.warning("Failed to delete temp directory '%s'" % tmp_dir)
+            except Exception as e: 
+                lit_config.warning("Failed to delete temp directory '%s', try upgrading your version of Python to fix this" % tmp_dir)
 
 
 def print_histogram(tests):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79861.263810.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/b3df4a64/attachment.bin>


More information about the llvm-commits mailing list