-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to select LOG_DICTIONARY_SUPPORT when TEST_LOGGING_DEFAULTS=y #34696
Comments
I guess I misread the help string on hmm... Why do we need this |
I think that |
@yashi, |
@nordic-krch Thanks for your feedback. Do we really want to enfoce minimal logging with tests? The commit 34b7a6c reads:
I'm not sure what was the intent. If we just want minimal logging as the default with test suite, we can do like this. diff --git a/subsys/logging/Kconfig.mode b/subsys/logging/Kconfig.mode
index eee352c369..d16647791b 100644
--- a/subsys/logging/Kconfig.mode
+++ b/subsys/logging/Kconfig.mode
@@ -3,6 +3,7 @@
choice LOG_MODE
prompt "Mode"
+ default LOG_MODE_MINIMAL if TEST
default LOG_MODE_DEFERRED
config LOG_MODE_DEFERRED
diff --git a/subsys/testsuite/Kconfig b/subsys/testsuite/Kconfig
index cb8a3a21dc..b871bb27ee 100644
--- a/subsys/testsuite/Kconfig
+++ b/subsys/testsuite/Kconfig
@@ -75,18 +75,6 @@ config TEST_USERSPACE
pass, CONFIG_ARCH_HAS_USERSPACE should be filtered in its
testcase.yaml.
-config TEST_LOGGING_DEFAULTS
- bool "Enable test case logging defaults"
- depends on TEST
- select LOG
- select LOG_MINIMAL
- default y
- help
- Option which implements default policy of enabling logging in
- minimal mode for all test cases. For tests that need alternate
- logging configuration, or no logging at all, disable this
- in the project-level defconfig.
-
config TEST_ENABLE_USERSPACE
bool
depends on TEST_USERSPACE Many Anyway, if we don't support anything but minimal logging with the test suite, you can close this issue. Thanks! |
The testsuite was always forcing minimal logging. This is problematic as it does not allow user to see full logging string. Allow user to override the minimal logging if needed, the default is still to enable minimal logging. [DL: Commit 7f08061 reverts this. Since this is useful, let's re-apply this.] Fixes zephyrproject-rtos#34696 Signed-off-by: Jukka Rissanen <[email protected]> Signed-off-by: Daniel Leung <[email protected]>
Note that the testsuite defaults to using |
The testsuite was always forcing minimal logging. This is problematic as it does not allow user to see full logging string. Allow user to override the minimal logging if needed, the default is still to enable minimal logging. [DL: Commit 7f08061 reverts this. Since this is useful, let's re-apply this.] Fixes zephyrproject-rtos#34696 Signed-off-by: Jukka Rissanen <[email protected]> Signed-off-by: Daniel Leung <[email protected]>
The testsuite was always forcing minimal logging. This is problematic as it does not allow user to see full logging string. Allow user to override the minimal logging if needed, the default is still to enable minimal logging. [DL: Commit 7f08061 reverts this. Since this is useful, let's re-apply this.] Fixes #34696 Signed-off-by: Jukka Rissanen <[email protected]> Signed-off-by: Daniel Leung <[email protected]>
Describe the bug
The commit 7f08061 changed
imply LOG_MINIMAL
insubsys/testsuite/Kconfig
toselect LOG_MINIMAL
, which prohibits menuconfig users not to select desired logging mode and effectively reverts the commit 34b7a6c.Because it selects
LOG_MINIMAL
instead ofLOG_MODE_MINIMAL
, you can't test any feature such asLOG_DICTIONARY_SUPPORT
if you enableTEST_LOGGING_DEFAULTS
.BTW, as you may already know, you can't
imply LOG_MODE_MINIMAL
.All I can come up with is to
default LOG_MODE_MINIMAL if TEST_LOGGING_DEFAULTS
onLOG_MODE
as described in #6948.To Reproduce
Expected behavior
I'd like to select
LOG_DICTIONARY_SUPPORT
when TEST_LOGGING_DEFAULTS=yImpact
Unable to test
LOG_DICTIONARY_SUPPORT
with ztest.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: