aboutsummaryrefslogtreecommitdiff
path: root/scripts/convert2conformance/convert2conformance.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/convert2conformance/convert2conformance.py')
-rwxr-xr-xscripts/convert2conformance/convert2conformance.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/convert2conformance/convert2conformance.py b/scripts/convert2conformance/convert2conformance.py
index 9cafed3..b1f8d0e 100755
--- a/scripts/convert2conformance/convert2conformance.py
+++ b/scripts/convert2conformance/convert2conformance.py
@@ -79,6 +79,13 @@ def parse_args(argv):
help="Profiles this test is suitable for. May be repeated",
)
parser.add_argument(
+ "--tag",
+ dest="tag",
+ action="append",
+ type=str,
+ help="Optional string tag mark this test with. May be repeated",
+ )
+ parser.add_argument(
"--strict",
dest="strict",
action="store_true",
@@ -160,6 +167,7 @@ def update_desc_json(
output_dir: Optional[Path] = None,
create_result=True,
profiles=None,
+ tags=None,
):
"""Update the desc.json format for conformance and optionally create result."""
ofm_files = []
@@ -199,6 +207,10 @@ def update_desc_json(
profiles = [PROFILES_LIST[0]]
test_desc["profile"] = profiles
+ # Add tags (if any)
+ if tags is not None:
+ test_desc["tag"] = tags
+
return test_desc
@@ -325,6 +337,7 @@ def main(argv=None):
output_dir=args.output_dir,
create_result=True,
profiles=args.profile,
+ tags=args.tag,
)
if not test_desc:
# Error from conversion/update