mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
test: Enable console recording in tests
At present we reset the console buffer before each test but do not actually set the recording flag. Without this, the output is not recorded. Update the code to set the flag before the test and clear it afterwards. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b612312816
commit
cfccff8000
@ -97,11 +97,11 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test,
|
||||
* Silence the console and rely on console recording to get
|
||||
* our output.
|
||||
*/
|
||||
console_record_reset();
|
||||
console_record_reset_enable();
|
||||
if (!state->show_test_output)
|
||||
gd->flags |= GD_FLG_SILENT;
|
||||
test->func(uts);
|
||||
gd->flags &= ~GD_FLG_SILENT;
|
||||
gd->flags &= ~(GD_FLG_SILENT | GD_FLG_RECORD);
|
||||
state_set_skip_delays(false);
|
||||
|
||||
ut_assertok(dm_test_destroy(uts));
|
||||
|
Loading…
Reference in New Issue
Block a user