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

Marek Behún marek.behun at nic.cz
Sun Feb 6 20:07:46 CET 2022


On Sun,  6 Feb 2022 19:37:15 +0100
Francis Laniel <francis.laniel at 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 at amarulasolutions.com>
> Reviewed-by: Simon Glass <sjg at 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


More information about the U-Boot mailing list