Skip to content
Snippets Groups Projects
Commit 62d42f17 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

data-env: raise an error when input vars is not found

This will help us to detect configuration issue.
parent eb886650
No related branches found
No related tags found
No related merge requests found
Pipeline #56233 passed
from . import basics
from . import (
basics,
errors,
)
def get_data_env(data_env_path):
......@@ -23,4 +26,7 @@
def get_benchmark_input_vars(self, key):
full_key = f'bench-input-vars.{key}'
return basics.get_one_value(self._data, full_key)
value = basics.get_one_value(self._data, full_key)
if value is None:
raise errors.MissingDataEnvInputVars(key)
return value
......@@ -17,3 +17,7 @@
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
class MissingDataEnvInputVars(KeyError):
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment