Skip to content

Commit b480cfa

Browse files
committed
Make the pummel test runner not crash on windows when a directory is locked
1 parent a056ef1 commit b480cfa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/pummel/testcfg.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def AfterRun(self, result):
5555
except:
5656
pass
5757
# make it again.
58-
mkdir(self.tmpdir)
58+
try:
59+
mkdir(self.tmpdir)
60+
except:
61+
pass
5962

6063
def BeforeRun(self):
6164
# delete the whole tmp dir
@@ -64,8 +67,11 @@ def BeforeRun(self):
6467
except:
6568
pass
6669
# make it again.
67-
mkdir(self.tmpdir)
68-
70+
try:
71+
mkdir(self.tmpdir)
72+
except:
73+
pass
74+
6975
def GetLabel(self):
7076
return "%s %s" % (self.mode, self.GetName())
7177

0 commit comments

Comments
 (0)