Re: [RFC PATCH v2 19/21] test: hush: Fix if tests for hush 2021

Marek Behún
2022-02-06T19:07:53Z

On Sun, 6 Feb 2022 19:37:15 +0100
Francis Laniel <francis.laniel@amarulasolutions.com> wrote:

> Modifies the command run for hush 2021 when using string comparison operator.
> Indeed, '<' and '>' must be escaped to be used as these operators.
>
> Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> test/hush/if.c | 43 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
>
> diff --git a/test/hush/if.c b/test/hush/if.c
> index a57d88850f..b2f1f247f5 100644
> --- a/test/hush/if.c
> +++ b/test/hush/if.c
> @@ -39,6 +39,10 @@ static int hush_test_if_basic_operators(struct unit_test_state *uts)
> {
> char if_formatted[128];
>
> +#if CONFIG_IS_ENABLED(HUSH_2021_PARSER)
> + console_record_reset_enable();
> +#endif /* HUSH_2021_PARSER */

Ordinary if-else statements please.

Marek