From 8e411bfaefaf931f849521149aa74151e1ccbd0c Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Tue, 11 Jun 2024 14:56:45 +0200 Subject: libtuning: Only warn if processing returns None There are valid cases where a module returns None. E.g. no images were provided for LSC calibration. We should however define proper semantics there. Continue with a warning for now. Signed-off-by: Stefan Klug Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/tuning/libtuning/generators/yaml_output.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/tuning/libtuning/generators') diff --git a/utils/tuning/libtuning/generators/yaml_output.py b/utils/tuning/libtuning/generators/yaml_output.py index 31e265df..c490081d 100644 --- a/utils/tuning/libtuning/generators/yaml_output.py +++ b/utils/tuning/libtuning/generators/yaml_output.py @@ -107,6 +107,9 @@ class YamlOutput(Generator): ] for module in output_order: + if module not in output_dict: + continue + out_lines.append(f' - {module.out_name}:') if len(output_dict[module]) == 0: -- cgit v1.2.1