[Buildbot] #2885: Windows: rmdirRecursive() fails if a contained files is opened
Buildbot trac
trac at buildbot.net
Wed Sep 3 13:20:04 UTC 2014
#2885: Windows: rmdirRecursive() fails if a contained files is opened
-------------------+-----------------------
Reporter: dl | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Version: 0.8.9 | Keywords: windows
-------------------+-----------------------
rmdirRecursive() for runtime.platformType == 'win32' assumes (and
requires), that after a successful os.remove(file_path) no file with path
file_path exists (as long as it is not recreated by an other process).
In fact, this is not guaranteed on Windows:
http://www.osronline.com/article.cfm?article=245.
In our environment, rmdirRecursive() in the context of a SVN checkout
("clobber") quite often failed (about every third time), probably due to
files temporarily opened by the installed antivirus suite:
exceptions.WindowsError: [Error 145] Das Verzeichnis ist nicht leer.
The only solution I could find, is to try several times after some seconds
of waiting, ignoring this errors at every try except the last one.
--
Ticket URL: <http://trac.buildbot.net/ticket/2885>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list