Commit ea5e3ed7 authored by Aurel's avatar Aurel

tests: refix getLogDirectoryPath

parent 5fb94a02
...@@ -227,13 +227,9 @@ class ERP5BusinessTemplateCodingStyleTestSuite(_ERP5): ...@@ -227,13 +227,9 @@ 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] , tested)) '{}-{}'.format(args[-1], kw.get('TESTED_BUSINESS_TEMPLATE', kw.get('TESTED_PRODUCT'))))
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