Skip to content
Browse files

Make the pummel test runner not crash on windows when a directory is …

…locked
  • Loading branch information...
1 parent a056ef1 commit b480cfaf346a1e2d43d31073bd689bd599e3dae1 @piscisaureus piscisaureus committed Nov 25, 2011
Showing with 9 additions and 3 deletions.
  1. +9 −3 test/pummel/testcfg.py
View
12 test/pummel/testcfg.py
@@ -55,7 +55,10 @@ def AfterRun(self, result):
except:
pass
# make it again.
- mkdir(self.tmpdir)
+ try:
+ mkdir(self.tmpdir)
+ except:
+ pass
def BeforeRun(self):
# delete the whole tmp dir
@@ -64,8 +67,11 @@ def BeforeRun(self):
except:
pass
# make it again.
- mkdir(self.tmpdir)
-
+ try:
+ mkdir(self.tmpdir)
+ except:
+ pass
+
def GetLabel(self):
return "%s %s" % (self.mode, self.GetName())

0 comments on commit b480cfa

Please sign in to comment.
Something went wrong with that request. Please try again.