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