Commit 4ec60c39 authored by Jérome Perrin's avatar Jérome Perrin

ERP5TypeTestSuite: fix testConflictResolution and testInvalidationBug

These tests are calling runUnitTest twice, first to save then to run
test. On the second run the directory is already created.
parent 1f55f616
...@@ -20,7 +20,8 @@ class ERP5TypeTestSuite(TestSuite): ...@@ -20,7 +20,8 @@ class ERP5TypeTestSuite(TestSuite):
def getLogDirectoryPath(self, *args, **kw): def getLogDirectoryPath(self, *args, **kw):
log_directory = os.path.join(self.log_directory, args[-1].replace(':', '_')) log_directory = os.path.join(self.log_directory, args[-1].replace(':', '_'))
os.mkdir(log_directory) if not os.path.exists(log_directory):
os.mkdir(log_directory)
return log_directory return log_directory
def runUnitTest(self, *args, **kw): def runUnitTest(self, *args, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment