aboutsummaryrefslogtreecommitdiff
path: root/test/hush/dollar.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-01-11 10:03:51 -0500
committerTom Rini <trini@konsulko.com>2024-01-11 10:03:51 -0500
commitd3dba8a28bb7f57a4558c944f9c329c467144633 (patch)
tree517ec69555b6f0f1dafd0f114ec67c7b9ddbcdf0 /test/hush/dollar.c
parent7a59d520ef0bfd29b339cba5282149271d5ac3b2 (diff)
parent6c2f753f4ad3dcee60190949d1286736a6d51d17 (diff)
Merge tag 'u-boot-dfu-20240111' of https://source.denx.de/u-boot/custodians/u-boot-dfu
u-boot-dfu-20240111 - Implement fastboot multi-response. This allows multi-line response and most importantly, finally adds support for fastboot getvar all command. - New 'fastboot oem console' command. Useful for debugging to send data the u-boot shell via fastboot - Console recording fixes
Diffstat (limited to 'test/hush/dollar.c')
-rw-r--r--test/hush/dollar.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/test/hush/dollar.c b/test/hush/dollar.c
index 4caa07c192..68d0874d90 100644
--- a/test/hush/dollar.c
+++ b/test/hush/dollar.c
@@ -53,29 +53,12 @@ static int hush_test_simple_dollar(struct unit_test_state *uts)
ut_asserteq(1, run_command("dollar_foo='bar quux", 0));
/* Next line contains error message */
ut_assert_skipline();
-
- if (gd->flags & GD_FLG_HUSH_MODERN_PARSER) {
- /*
- * For some strange reasons, the console is not empty after
- * running above command.
- * So, we reset it to not have side effects for other tests.
- */
- console_record_reset_enable();
- } else if (gd->flags & GD_FLG_HUSH_OLD_PARSER) {
- ut_assert_console_end();
- }
+ ut_assert_console_end();
ut_asserteq(1, run_command("dollar_foo=bar quux\"", 0));
- /* Two next lines contain error message */
- ut_assert_skipline();
+ /* Next line contains error message */
ut_assert_skipline();
-
- if (gd->flags & GD_FLG_HUSH_MODERN_PARSER) {
- /* See above comments. */
- console_record_reset_enable();
- } else if (gd->flags & GD_FLG_HUSH_OLD_PARSER) {
- ut_assert_console_end();
- }
+ ut_assert_console_end();
ut_assertok(run_command("dollar_foo='bar \"quux'", 0));