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

Provide full test reference, instead of only image

parent 2bea0e59
......@@ -8,7 +8,7 @@ recipe = slapos.recipe.template:jinja2
rendered = $${buildout:directory}/bin/$${:_buildout_section_name_}
template = inline:
#!/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
context =
key slapparameter_dict slap-configuration:configuration
......
......@@ -51,13 +51,13 @@ def main():
help="Path of a partition",
default=os.path.abspath(os.getcwd()))
parser.add_argument(
'--image_reference',
help="Reference of tested image",
'--test_reference',
help="Reference of the test",
default="missing"
)
args = parser.parse_args()
test_list = [args.image_reference]
test_list = [args.test_reference]
test_title = args.test_suite_title or args.test_suite
if 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