Commit f4f50844 authored by Jérome Perrin's avatar Jérome Perrin

fixup! software/erp5testnode: deploy-test use latest kvm

adjust to changes in kvm software release and erp5.util
parent 4e5f1dd0
...@@ -18,4 +18,4 @@ md5sum = 8288e59eb442c662544daffbf446a033 ...@@ -18,4 +18,4 @@ md5sum = 8288e59eb442c662544daffbf446a033
[template-deploy-test] [template-deploy-test]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = b673c497abe5b3e7de4c7fc8b01aa3d0 md5sum = c5db797980951b764b69aaa4b60a0380
...@@ -28,7 +28,7 @@ recipe = slapos.recipe.template:jinja2 ...@@ -28,7 +28,7 @@ recipe = slapos.recipe.template:jinja2
rendered = $${buildout:directory}/bin/$${:_buildout_section_name_} rendered = $${buildout:directory}/bin/$${:_buildout_section_name_}
template = inline: template = inline:
#!/bin/sh #!/bin/sh
export PATH=${python-with-eggs:location}:$PATH export PATH=${python2.7-with-eggs:location}:$PATH
exec ${buildout:bin-directory}/${runTestSuite_py:interpreter} ${:_profile_base_location_}/runTestSuite.py --partition_ipv4 {{ list(partition_ipv4)[0] }} --partition_path $${buildout:directory} --test_reference "{{ slapparameter_dict.get('image-to-test-url') }} {{ slapparameter_dict.get('script-to-test-url')}}" --test_location "${test-location:base}/{{ slapparameter_dict.get('test-relative-directory', 'playbook/roles/standalone-shared') }}" --python_interpreter=${buildout:bin-directory}/${runTestSuite_py:interpreter} "$@" exec ${buildout:bin-directory}/${runTestSuite_py:interpreter} ${:_profile_base_location_}/runTestSuite.py --partition_ipv4 {{ list(partition_ipv4)[0] }} --partition_path $${buildout:directory} --test_reference "{{ slapparameter_dict.get('image-to-test-url') }} {{ slapparameter_dict.get('script-to-test-url')}}" --test_location "${test-location:base}/{{ slapparameter_dict.get('test-relative-directory', 'playbook/roles/standalone-shared') }}" --python_interpreter=${buildout:bin-directory}/${runTestSuite_py:interpreter} "$@"
mode = 0755 mode = 0755
context = context =
...@@ -37,7 +37,7 @@ context = ...@@ -37,7 +37,7 @@ context =
[switch_softwaretype] [switch_softwaretype]
default = $${:deploy-test} default = $${:deploy-test}
deploy-test = $${dynamic-template-deploy-test:rendered} deploy-test = dynamic-template-deploy-test:rendered
[dynamic-template-deploy-test] [dynamic-template-deploy-test]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
......
...@@ -152,9 +152,12 @@ def main(): ...@@ -152,9 +152,12 @@ def main():
revision = args.revision revision = args.revision
test_suite_title = args.test_suite_title or args.test_suite test_suite_title = args.test_suite_title or args.test_suite
# TODO: rewrite this unsing nxdtest, EggTestSuite no longer exist in erp5.util
suite = testsuite.EggTestSuite( suite = testsuite.EggTestSuite(
1, test_suite=args.test_suite, node_quantity=args.node_quantity, 1, test_suite=args.test_suite, node_quantity=args.node_quantity,
python_interpreter=args.python_interpreter, python_interpreter=args.python_interpreter,
shared_part_list=os.environ.get('SLAPOS_TEST_SHARED_PART_LIST', ''),
log_directory=os.environ.get('SLAPOS_TEST_LOG_DIRECTORY', ''),
egg_test_path_dict={ egg_test_path_dict={
os.path.basename(os.path.normpath(path)): path os.path.basename(os.path.normpath(path)): path
for path in args.test_location.split(',')}, for path in args.test_location.split(',')},
......
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
extends = extends =
buildout.hash.cfg buildout.hash.cfg
https://lab.nexedi.com/nexedi/slapos/raw/1.0.182/software/kvm/software.cfg https://lab.nexedi.com/nexedi/slapos/raw/1.0.182/software/kvm/software.cfg
parts = parts =
eggs python-with-eggs
template-deploy-test template-deploy-test
runTestSuite_py runTestSuite_py
playbook playbook
...@@ -15,7 +14,9 @@ eggs = ...@@ -15,7 +14,9 @@ eggs =
erp5.util erp5.util
interpreter = ${:_buildout_section_name_} interpreter = ${:_buildout_section_name_}
[python-with-eggs] [python2.7-with-eggs]
# create interpreters named "python" and "python2.7" so that
# instance profile can use them in $PATH
recipe = plone.recipe.command recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
...@@ -23,8 +24,8 @@ stop-on-error = true ...@@ -23,8 +24,8 @@ stop-on-error = true
command = command =
rm -fr ${:location} && rm -fr ${:location} &&
mkdir -p ${:location} && mkdir -p ${:location} &&
ln -s ${buildout:bin-directory}/pythonwitheggs ${:location}/python && ln -s ${buildout:bin-directory}/${python-with-eggs:interpreter} ${:location}/python &&
ln -s ${buildout:bin-directory}/pythonwitheggs ${:location}/python2.7 ln -s ${buildout:bin-directory}/${python-with-eggs:interpreter} ${:location}/python2.7
update-command = ${:command} update-command = ${:command}
[playbook] [playbook]
......
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