Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
slapos
Commits
faeeea1f
Commit
faeeea1f
authored
Aug 13, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bin/runUnitTest: buildout does not allow to indent Python code...
parent
a2484d5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
stack/erp5.cfg
stack/erp5.cfg
+11
-10
No files found.
stack/erp5.cfg
View file @
faeeea1f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment