Title: [282268] trunk/Tools
- Revision
- 282268
- Author
- jbed...@apple.com
- Date
- 2021-09-10 08:07:52 -0700 (Fri, 10 Sep 2021)
Log Message
Exception in run-webkit-tests: Bad file descriptor (Part 3)
https://bugs.webkit.org/show_bug.cgi?id=229994
<rdar://problem/82826083>
Unreviewed follow-up fix.
* Scripts/webkitpy/common/system/filesystem.py:
(FileSystem.rmtree): shutil.rmtree doesn't ignore bad file descriptor OSErrors.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (282267 => 282268)
--- trunk/Tools/ChangeLog 2021-09-10 14:26:56 UTC (rev 282267)
+++ trunk/Tools/ChangeLog 2021-09-10 15:07:52 UTC (rev 282268)
@@ -1,3 +1,14 @@
+2021-09-10 Jonathan Bedard <jbed...@apple.com>
+
+ Exception in run-webkit-tests: Bad file descriptor (Part 3)
+ https://bugs.webkit.org/show_bug.cgi?id=229994
+ <rdar://problem/82826083>
+
+ Unreviewed follow-up fix.
+
+ * Scripts/webkitpy/common/system/filesystem.py:
+ (FileSystem.rmtree): shutil.rmtree doesn't ignore bad file descriptor OSErrors.
+
2021-09-09 Simon Fraser <simon.fra...@apple.com>
Fix some lldb data provider issues
Modified: trunk/Tools/Scripts/webkitpy/common/system/filesystem.py (282267 => 282268)
--- trunk/Tools/Scripts/webkitpy/common/system/filesystem.py 2021-09-10 14:26:56 UTC (rev 282267)
+++ trunk/Tools/Scripts/webkitpy/common/system/filesystem.py 2021-09-10 15:07:52 UTC (rev 282268)
@@ -290,7 +290,10 @@
def rmtree(self, path):
"""Delete the directory rooted at path, whether empty or not."""
- shutil.rmtree(path, ignore_errors=True)
+ try:
+ shutil.rmtree(path, ignore_errors=True)
+ except OSError:
+ pass
def copytree(self, source, destination):
shutil.copytree(source, destination)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes