Commit e6d8bf48 authored by Łukasz Nowak's avatar Łukasz Nowak

Provide full test reference, instead of only image

parent 04d67189
...@@ -8,7 +8,7 @@ recipe = slapos.recipe.template:jinja2 ...@@ -8,7 +8,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
exec ${buildout:bin-directory}/${runTestSuite_py:interpreter} ${:_profile_base_location_}/$${:_buildout_section_name_}.py --partition_path $${buildout:directory} --image_reference "{{ slapparameter_dict.get('image-to-test-url') }}" "$@" exec ${buildout:bin-directory}/${runTestSuite_py:interpreter} ${:_profile_base_location_}/$${:_buildout_section_name_}.py --partition_path $${buildout:directory} --test_reference "{{ slapparameter_dict.get('image-to-test-url') }} {{ slapparameter_dict.get('script-to-test-url')}}" "$@"
mode = 0755 mode = 0755
context = context =
key slapparameter_dict slap-configuration:configuration key slapparameter_dict slap-configuration:configuration
......
...@@ -51,13 +51,13 @@ def main(): ...@@ -51,13 +51,13 @@ def main():
help="Path of a partition", help="Path of a partition",
default=os.path.abspath(os.getcwd())) default=os.path.abspath(os.getcwd()))
parser.add_argument( parser.add_argument(
'--image_reference', '--test_reference',
help="Reference of tested image", help="Reference of the test",
default="missing" default="missing"
) )
args = parser.parse_args() args = parser.parse_args()
test_list = [args.image_reference] test_list = [args.test_reference]
test_title = args.test_suite_title or args.test_suite test_title = args.test_suite_title or args.test_suite
if args.master_url: if args.master_url:
tool = taskdistribution.TaskDistributionTool(args.master_url) tool = taskdistribution.TaskDistributionTool(args.master_url)
......
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