=== modified file 'lava_dispatcher/actions/launch_control.py'
@@ -159,7 +159,7 @@
if not all_bundles:
main_bundle = {
"test_runs": [],
- "format": "Dashboard Bundle Format 1.2"
+ "format": "Dashboard Bundle Format 1.3"
}
else:
main_bundle = all_bundles.pop(0)
=== modified file 'lava_dispatcher/job.py'
@@ -79,7 +79,13 @@
'enum': ["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"],
'optional': True,
},
- },
+ 'tags': {
+ 'type': 'array',
+ 'uniqueItems': True,
+ 'items': {'type': 'string'},
+ 'optional': True,
+ },
+ },
}
@@ -110,6 +116,10 @@
return self.job_data['target']
@property
+ def tags(self):
+ return self.job_data.get('tags', [])
+
+ @property
def logging_level(self):
try:
return self.job_data['logging_level']
@@ -133,6 +143,8 @@
if 'device_type' in self.job_data:
metadata['target.device_type'] = self.job_data['device_type']
self.context.test_data.add_metadata(metadata)
+
+ self.context.test_data.add_tags(self.tags)
try:
for cmd in self.job_data['actions']:
=== modified file 'lava_dispatcher/test_data.py'
@@ -26,7 +26,7 @@
def __init__(self, test_id='lava'):
self.job_status = 'pass'
self.metadata = {}
- self._test_run = { 'test_results':[], 'attachments':[] }
+ self._test_run = { 'test_results':[], 'attachments':[], 'tags':[] }
self._test_run['test_id'] = test_id
self._assign_date()
self._assign_uuid()
@@ -51,6 +51,13 @@
def add_attachment(self, attachment):
self._test_run['attachments'].append(attachment)
+ def add_tag(self, tag):
+ self._test_run['tags'].append(tag)
+
+ def add_tags(self, tags):
+ for tag in tags:
+ self.add_tag(tag)
+
def add_metadata(self, metadata):
self.metadata.update(metadata)
=== modified file 'setup.py'
@@ -26,7 +26,7 @@
],
},
install_requires=[
- "json-schema-validator",
+ "json-schema-validator >= 2.3",
"lava-tool >= 0.4",
"lava-utils-interface",
"pexpect >= 2.3",