Commit faeeea1f authored by Julien Muchembled's avatar Julien Muchembled

bin/runUnitTest: buildout does not allow to indent Python code...

parent a2484d5f
......@@ -247,16 +247,17 @@ initialization =
os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
os.environ['ZOPE_SCRIPTS'] = ''
parts_directory = '''${buildout:parts-directory}'''
bt5_path_list = []
test_path_list = []
for r in reversed('''${erp5_repository_list:repository_id_list}'''.split()):
r = os.path.join(parts_directory, r)
bt5_path = os.path.join(r, 'bt5')
bt5_path_list += bt5_path, os.path.join(bt5_path, '*')
test_path_list += glob.glob(os.path.join(r, 'product', '*', 'tests'))
test_path_list.append(os.path.join(r, 'tests'))
os.environ['erp5_tests_bt5_path'] = ','.join(bt5_path_list)
sys.path[:0] = test_path_list
repository_id_list = \
'''${erp5_repository_list:repository_id_list}'''.split()[::-1]
os.environ['erp5_tests_bt5_path'] = ','.join(sum((
[bt5_path, os.path.join(bt5_path, '*')]
for bt5_path in (os.path.join(parts_directory, x, 'bt5')
for x in repository_id_list)), []))
sys.path[:0] = [os.path.join(parts_directory, x, 'tests')
for x in repository_id_list]
sys.path[:0] = sum((
glob.glob(os.path.join(parts_directory, x, 'product', '*', 'tests'))
for x in repository_id_list), [])
[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
......
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