-
Notifications
You must be signed in to change notification settings - Fork 44
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
case-lib: add support for no logger mode #811
Conversation
To use this feature, run |
How about downgrading the |
I think it can not resolve the problem, even if the function |
No, see suggested code change above.
The user should not have to manually tell sof-test that there is no .ldc file when there is already a function that knows how to look for the .ldc file automatically. |
This is kind of use ldc file to hide sof-logger incapability |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kind of use ldc file to hide sof-logger incapability
Why would you install an .ldc file when it cannot work?
Now let's say you want to temporarily test without a working sof-logger for some reason like #726. Then it's much simpler to rename the .ldc file than remember the name of an environment variable and pass it to a far away process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7b89481
to
6f1c6aa
Compare
@marc-hb OK, let keep on your first suggestion. |
Zephyr could not use sof-logger for months. Yet it could pass some tests with zero dependency on sof-logger thanks to the function |
Logger is not supported, add a new mode to run test without sof-logger. Signed-off-by: Chao Song <[email protected]>
6f1c6aa
to
161b34e
Compare
v1 commit 7b89481 used manual Any objection to automatic configuration in the better tested place? In general, the fewer settings the better. Fewer settings means everyone including CI runs the same code, it reduces combinatorial explosion. Here's why I think we can and should avoid a new LOGGER_MODE setting:
On the other hand, sof-test should always report clearly whether it found some .ldc file or not and what decision it made. |
Some configurations don't support the logger. Others do but do not want to run it for various reasons. Supersedes thesofproject#811, see earlier discussions there. Signed-off-by: Marc Herbert <[email protected]>
In a private discussion @plbossart expressed a strong preference for the environment variable type of interface. My top concern with the environment variable was adding a new configuration step for everyone who does not have or want any .ldc file (valid or not). As mentioned by @plbossart , this includes some Linux distributions. After some more thought I realized we can have it all: automated when possible and both manual configuration ways. This is what I just submitted in #813 which I hope will supersede this. Note I changed the environment variable to |
Some configurations don't support the logger. Others do but do not want to run it for various reasons. Supersedes thesofproject#811, see earlier discussions there. Signed-off-by: Marc Herbert <[email protected]>
Some configurations don't support the logger. Others do but do not want to run it for various reasons. Supersedes #811, see earlier discussions there. Signed-off-by: Marc Herbert <[email protected]>
Superseded by #813 |
Logger is not supported for firmware without
ldc file, add a new mode to test without
sof-logger.
Signed-off-by: Chao Song [email protected]