Use actual ATVM runtime flow steps in watcher output
This commit is contained in:
@@ -1282,10 +1282,13 @@ def extract_test_flow_from_generated_spec(
|
||||
|
||||
def evaluate_gate_line(line: str, allowed_plugins: Optional[set[str]]) -> Tuple[bool, Optional[bool]]:
|
||||
normalized = re.sub(r"\s+", "", line)
|
||||
if normalized.startswith("if(useFCPlugin)"):
|
||||
return True, allowed_plugins is None or "fc" in allowed_plugins
|
||||
if normalized.startswith("if(useIscsiPlugin)"):
|
||||
return True, allowed_plugins is None or "iscsi" in allowed_plugins
|
||||
plugin_gate_match = re.match(r"if\((use[A-Za-z]+Plugin)\)", normalized)
|
||||
if plugin_gate_match:
|
||||
variable_name = plugin_gate_match.group(1).lower()
|
||||
if "iscsi" in variable_name:
|
||||
return True, allowed_plugins is None or "iscsi" in allowed_plugins
|
||||
if "fc" in variable_name:
|
||||
return True, allowed_plugins is None or "fc" in allowed_plugins
|
||||
if normalized.startswith('if(Cypress.env("test-unaligned-fio")==true)'):
|
||||
value = runtime_settings.get("test-unaligned-fio")
|
||||
return True, value if isinstance(value, bool) else None
|
||||
|
||||
Reference in New Issue
Block a user