Skip to content

Commit

Permalink
fix(log_level): include parse and setup of log level
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Costa <[email protected]>
  • Loading branch information
Diogo21Costa committed Jan 29, 2024
1 parent 5621204 commit 58d9592
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
'nix_file': '',
'suites': '',
'tests': '',
'tests_configs': {
'log_level': ''
}
'log_level': ''
}

def parse_args():
Expand Down Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 58d9592

Please sign in to comment.