forked from labgrid-project/labgrid
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver/bareboxdriver: run commands with saved log level
[1] introduced lowering barebox' log level to 0 (emerg) right after the barebox prompt has been detected and recovering the log level right before booting. Tests may rely on log output, though. To enable capturing log messages a command may emit, set the log level to the initially remembered level before the command is executed and reset it to 0 (emerg) after the exit code was emitted. barebox' poller should not run between the echos, so this should be safe. No asynchronous prints are expected to happen during this time. [1] labgrid-project#1221, 6f7bf66 ("driver/bareboxdriver: silence barebox in _await_prompt() and unsilence on boot()") Signed-off-by: Bastian Krause <bst@pengutronix.de>
- Loading branch information
1 parent
39c2b0f
commit 44fd0f9
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters