Commit c7e89e68 authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5/zope4py3: Allow slapos-sr-testing with slapos-py2.

parent 0465b88b
...@@ -29,15 +29,13 @@ from __future__ import absolute_import ...@@ -29,15 +29,13 @@ from __future__ import absolute_import
import json import json
import os import os
import six
from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass
_setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass( _setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass(
os.path.abspath( os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', '..', os.path.join(os.path.dirname(__file__), '..', '..', 'software%s.cfg' % (
'software%s.cfg' % ("-py3" if six.PY3 else "")))) '-py3' if os.environ['SLAPOS_SR_TEST_NAME'] == 'erp5-py3' else ''))))
setup_module_executed = False setup_module_executed = False
......
...@@ -60,6 +60,7 @@ template = ...@@ -60,6 +60,7 @@ template =
command, command,
cwd={{ repr(folder) }}, cwd={{ repr(folder) }},
summaryf=UnitTest.summary, summaryf=UnitTest.summary,
envadj={ 'SLAPOS_SR_TEST_NAME': {{ repr(name) }} },
) )
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
......
...@@ -13,6 +13,7 @@ extra-eggs += ...@@ -13,6 +13,7 @@ extra-eggs +=
[template] [template]
extra = extra =
# The following list is for SR whose buildout runs only with Python 3. # The following list is for SR whose buildout runs only with Python 3.
erp5-py3 ${slapos.test.erp5-setup:setup}
galene ${slapos.test.galene-setup:setup} galene ${slapos.test.galene-setup:setup}
helloworld ${slapos.test.helloworld-setup:setup} helloworld ${slapos.test.helloworld-setup:setup}
jupyter ${slapos.test.jupyter-setup:setup} jupyter ${slapos.test.jupyter-setup:setup}
......
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