mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
fw/parsers: Raise error if no workload is specified
Ensure that an error is raised if no workload name is specified in an agenda.
This commit is contained in:
parent
ffdb6235c9
commit
2abfe68b07
@ -346,5 +346,7 @@ def _process_workload_entry(workload, seen_workload_ids, jobs_config):
|
||||
workload = _get_workload_entry(workload)
|
||||
workload = _construct_valid_entry(workload, seen_workload_ids,
|
||||
"wk", jobs_config)
|
||||
if "workload_name" not in workload:
|
||||
raise ConfigError('No workload name specified in entry {}'.format(workload['id']))
|
||||
return workload
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user