Commit 5fb94a02 authored by Aurel's avatar Aurel

tests: fix getLogDirectoryPath

parent 4d707692
...@@ -227,9 +227,13 @@ class ERP5BusinessTemplateCodingStyleTestSuite(_ERP5): ...@@ -227,9 +227,13 @@ class ERP5BusinessTemplateCodingStyleTestSuite(_ERP5):
return self.runUnitTest('CodingStyleTest', TESTED_BUSINESS_TEMPLATE=full_test) return self.runUnitTest('CodingStyleTest', TESTED_BUSINESS_TEMPLATE=full_test)
def getLogDirectoryPath(self, *args, **kw): def getLogDirectoryPath(self, *args, **kw):
if full_test.split('.')[0] == "Python3Style":
tested = kw['TESTED_PRODUCT']
else:
tested = kw['TESTED_BUSINESS_TEMPLATE']
log_directory = os.path.join( log_directory = os.path.join(
self.log_directory, self.log_directory,
'{}-{}'.format(args[-1] , kw['TESTED_BUSINESS_TEMPLATE'])) '{}-{}'.format(args[-1] , tested))
os.mkdir(log_directory) os.mkdir(log_directory)
return log_directory return log_directory
......
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