Skip to content

Commit

Permalink
case-lib: Add an option to disable logger
Browse files Browse the repository at this point in the history
Logger is not supported, add a new mode to
run test without sof-logger.

Signed-off-by: Chao Song <[email protected]>
  • Loading branch information
Chao Song committed Nov 30, 2021
1 parent 0a464ff commit 161b34e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions case-lib/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ SUDO_LEVEL=${SUDO_LEVEL:-}
# in CI, which is controlled by sof-framework. In manual run, user can
# override the default value.
SOF_TEST_INTERVAL=${SOF_TEST_INTERVAL:-5}

# Logger is not always supported, we want sof-test to run even
# without logger.
LOGGER_MODE=${LOGGER_MODE:-true}
2 changes: 1 addition & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ is_zephyr()

logger_disabled()
{
[[ ${OPT_VAL['s']} -eq 0 ]]
[[ ${OPT_VAL['s']} -eq 0 ]] || [[ "$LOGGER_MODE" == "false" ]]
}

print_module_params()
Expand Down

0 comments on commit 161b34e

Please sign in to comment.