From 58d9592f6174d68a940a9c7ae4fae3a375adbdc0 Mon Sep 17 00:00:00 2001 From: Diogo Costa Date: Mon, 29 Jan 2024 15:23:26 +0000 Subject: [PATCH] fix(log_level): include parse and setup of log level Signed-off-by: Diogo Costa --- framework/test_framework.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/test_framework.py b/framework/test_framework.py index 5beb1b4..dd130eb 100644 --- a/framework/test_framework.py +++ b/framework/test_framework.py @@ -19,9 +19,7 @@ 'nix_file': '', 'suites': '', 'tests': '', - 'tests_configs': { - 'log_level': '' - } + 'log_level': '' } def parse_args(): @@ -68,8 +66,8 @@ def parse_dts_file(file_path): tree.children[0].children[0].children[0].properties[1].values[0] test_config['tests'] = \ tree.children[0].children[0].children[0].properties[2].values[0] - test_config['tests_configs']['log_level'] = \ - tree.children[0].children[0].children[0].properties[2].values[0] + test_config['log_level'] = \ + tree.children[0].children[0].children[0].properties[3].values[0] def run_command_in_terminal(command): """ @@ -198,6 +196,8 @@ def deploy_test(platform): list_suites = test_config['suites'].split() list_tests = test_config['tests'].split() BUILD_CMD += " --argstr platform " + test_config['platform'] + BUILD_CMD += " --argstr log_level " + test_config['log_level'] + if len(list_suites): BUILD_CMD += " --argstr list_suites \"" for suit in list_suites: