diff options
| author | Tom Rini <[email protected]> | 2024-08-26 18:52:18 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-26 18:52:18 -0600 |
| commit | 9735cfaf904551759597067d76e2ae2ec21d582a (patch) | |
| tree | 5578133191f3a0557deb2360e14eb367fab804b9 /common | |
| parent | 02d587a447ccae12618abbfb2b8ddd88ac3c7648 (diff) | |
| parent | 695b4645325ef40c792a6e6a3849d134fcf80ed0 (diff) | |
Merge patch series "Tidy up console recording in tests"
Simon Glass <[email protected]> says:
This series started as a small fix for checking for an empty line,
but in the process several other problems were found and fixed:
- fix tests which use console recording but don't set the flag
- drop unnecessary resetting of the console in tests
- drop unnecessary blank line before MMC output
- update the docs a little
- fix buildman test failure on newer Pythons
- a few other minor things
This series also renames the confusing flag names, so that they are
easier to remember - just a UTF_ (unit-test flags) prefix.
Diffstat (limited to 'common')
| -rw-r--r-- | common/console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/console.c b/common/console.c index f39821385bb..52d6df8150f 100644 --- a/common/console.c +++ b/common/console.c @@ -846,6 +846,8 @@ int console_record_readline(char *str, int maxlen) { if (gd->flags & GD_FLG_RECORD_OVF) return -ENOSPC; + if (console_record_isempty()) + return -ENOENT; return membuff_readline((struct membuff *)&gd->console_out, str, maxlen, '\0', false); |
