diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-10-02 11:42:18 +0200 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-10-02 11:45:50 +0200 |
commit | 548701d402e4cf1c9c60ccb040a06b0c057138df (patch) | |
tree | 94323e7b33c283228123f37afd875cd20bfecfb7 /plans | |
parent | f935ca2356614f1c05ea603c165c4c7724a7a6a8 (diff) |
testplan2html: allow testplan to override the test name
When we run the same test multiple times in a plan, it might be
convenient to use different names.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'plans')
-rwxr-xr-x | plans/testplan2html.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plans/testplan2html.py b/plans/testplan2html.py index 746df4d..58d967b 100755 --- a/plans/testplan2html.py +++ b/plans/testplan2html.py @@ -135,7 +135,8 @@ def test_exists(test, repositories, args): test.prepend("os", test_yaml['metadata']['os']) test.prepend("scope", test_yaml['metadata']['scope']) test.prepend("description", test_yaml['metadata']['description']) - test.prepend("name", test_yaml['metadata']['name']) + if 'name' not in test: + test.prepend("name", test_yaml['metadata']['name']) else: render(test_yaml, templates_dir=args.templates_directory, template=args.test_template_name, name=test_path) return not test['missing'] |