mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1210055 - Intermittent Windows Talos failures like Unable to remove C:\slave\test-pgo\build. r=parkouss
This commit is contained in:
parent
149742a926
commit
d3c1de1139
@ -274,8 +274,13 @@ class ScriptMixin(PlatformMixin):
|
||||
if file_attr & win32file.FILE_ATTRIBUTE_DIRECTORY:
|
||||
self._rmtree_windows(full_name)
|
||||
else:
|
||||
win32file.SetFileAttributesW('\\\\?\\' + full_name, win32file.FILE_ATTRIBUTE_NORMAL)
|
||||
win32file.DeleteFile('\\\\?\\' + full_name)
|
||||
try:
|
||||
win32file.SetFileAttributesW('\\\\?\\' + full_name, win32file.FILE_ATTRIBUTE_NORMAL)
|
||||
win32file.DeleteFile('\\\\?\\' + full_name)
|
||||
except:
|
||||
# DeleteFile fails on long paths, del /f /q works just fine
|
||||
self.run_command('del /F /Q "%s"' % full_name)
|
||||
|
||||
win32file.RemoveDirectory('\\\\?\\' + path)
|
||||
|
||||
def get_filename_from_url(self, url):
|
||||
|
Loading…
Reference in New Issue
Block a user