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

stack/ndtest,software/erp5testnode/testsuite: partially revert...

stack/ndtest,software/erp5testnode/testsuite: partially revert f5ebda78

These were actually :jinja2 versions of the recipe, so we can not
change them like this.

This commit was made in a rush to repair tests failing in loop, there
might still be mistakes.
parent 62dea062
...@@ -25,8 +25,8 @@ command = ...@@ -25,8 +25,8 @@ command =
[runTestSuite] [runTestSuite]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
output = $${buildout:directory}/bin/$${:_buildout_section_name_} rendered = $${buildout:directory}/bin/$${:_buildout_section_name_}
inline = template = inline:
#!/bin/sh #!/bin/sh
export PATH=${python2.7-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} "$@"
...@@ -36,12 +36,12 @@ context = ...@@ -36,12 +36,12 @@ context =
[switch_softwaretype] [switch_softwaretype]
default = $${:deploy-test} default = $${:deploy-test}
deploy-test = dynamic-template-deploy-test:output 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
url = ${:_profile_base_location_}/instance-deploy-test.cfg.jinja2 template = ${:_profile_base_location_}/instance-deploy-test.cfg.jinja2
output = $${buildout:directory}/template-deploy-test.cfg rendered = $${buildout:directory}/template-deploy-test.cfg
context = context =
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory key eggs_directory buildout:eggs-directory
......
...@@ -6,12 +6,12 @@ default = $${:test} ...@@ -6,12 +6,12 @@ default = $${:test}
RootSoftwareInstance = $${:test} RootSoftwareInstance = $${:test}
# Used for the test of resiliency. The system wants a "test" software_type. # Used for the test of resiliency. The system wants a "test" software_type.
test = dynamic-template-resilient-test:output test = dynamic-template-resilient-test:rendered
[dynamic-template-resilient-test] [dynamic-template-resilient-test]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
url = ${template-resilient-test:target} template = ${template-resilient-test:target}
output = $${buildout:directory}/template-resilient-test.cfg rendered = $${buildout:directory}/template-resilient-test.cfg
bin-directory = ${buildout:bin-directory} bin-directory = ${buildout:bin-directory}
context = context =
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
# #
# [instance.cfg] # [instance.cfg]
# <= jinja2-template # <= jinja2-template
# inline = # template = inline:
# [buildout] # [buildout]
# extends = ${nxdtest-instance.cfg:output} # extends = ${nxdtest-instance.cfg:rendered}
# #
# [runTestSuite] # [runTestSuite]
# env.sh = ... # env.sh = ...
...@@ -37,15 +37,15 @@ extends = ...@@ -37,15 +37,15 @@ extends =
[jinja2-template] [jinja2-template]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
url = ${:_profile_base_location_}/${:filename} template = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/${:_buildout_section_name_} rendered = ${buildout:directory}/${:_buildout_section_name_}
mode = 0644 mode = 0644
context = context =
section buildout buildout section buildout buildout
[nxdtest-instance.cfg] [nxdtest-instance.cfg]
<= jinja2-template <= jinja2-template
url = ${:_profile_base_location_}/nxdtest/${:filename} template = ${:_profile_base_location_}/nxdtest/${:filename}
# NOTE += does not work # NOTE += does not work
context = context =
section buildout buildout section buildout buildout
......
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