test: Enable console recording in tests
authorSimon Glass <sjg@chromium.org>
Mon, 27 Jan 2020 15:49:55 +0000 (08:49 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commitcfccff8000cb3f5b8eaee9a12568bc14eadfae8e
treea0b9c8333266ab961e9ddb196324443baccf1779
parentb612312816ffe41a3a7616aa00394ffb248cf91e
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>
test/dm/test-main.c