Commit c3136080 authored by Gabriel Monnerat's avatar Gabriel Monnerat

runUnitTest script: Don't set duplicated paths on repository list

parent 05c979fc
...@@ -412,8 +412,8 @@ class ERP5TypeTestLoader(unittest.TestLoader): ...@@ -412,8 +412,8 @@ class ERP5TypeTestLoader(unittest.TestLoader):
bt5_path = os.environ.get('erp5_tests_bt5_path') bt5_path = os.environ.get('erp5_tests_bt5_path')
if bt5_path: if bt5_path:
bt5_path_list.extend([ bt5_path.replace('*', '') bt5_path_list.extend(set([re.sub("(\/\*|\*)", '', bt5_path)
for bt5_path in bt5_path.split(',') ]) for bt5_path in bt5_path.split(',')]))
else: else:
from App.config import getConfiguration from App.config import getConfiguration
instancehome = getConfiguration().instancehome instancehome = getConfiguration().instancehome
...@@ -421,7 +421,6 @@ class ERP5TypeTestLoader(unittest.TestLoader): ...@@ -421,7 +421,6 @@ class ERP5TypeTestLoader(unittest.TestLoader):
bt5_path_list = [bt5_path for bt5_path in bt5_path_list bt5_path_list = [bt5_path for bt5_path in bt5_path_list
if os.path.exists(bt5_path)] if os.path.exists(bt5_path)]
template_tool.updateRepositoryBusinessTemplateList(bt5_path_list) template_tool.updateRepositoryBusinessTemplateList(bt5_path_list)
url_bt_tuple_list = [ url_bt_tuple_list = [
......
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