From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E06FAC433EF for ; Sun, 6 Feb 2022 19:07:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 080C583BCD; Sun, 6 Feb 2022 20:07:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 729AA83BD5; Sun, 6 Feb 2022 20:07:50 +0100 (CET) Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DBF3283BD0 for ; Sun, 6 Feb 2022 20:07:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [IPv6:2a0e:b107:ae1:0:3e97:eff:fe61:c680]) by mail.nic.cz (Postfix) with ESMTPSA id 5F7001420D5; Sun, 6 Feb 2022 20:07:47 +0100 (CET) Date: Sun, 6 Feb 2022 20:07:46 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Francis Laniel Cc: u-boot@lists.denx.de, Michael Nazzareno Trimarchi , Simon Glass , Wolfgang Denk , Harald Seiler Subject: Re: [RFC PATCH v2 19/21] test: hush: Fix if tests for hush 2021 Message-ID: <20220206200746.02472f76@thinkpad> In-Reply-To: <20220206183717.57446-20-francis.laniel@amarulasolutions.com> References: <20220206183717.57446-1-francis.laniel@amarulasolutions.com> <20220206183717.57446-20-francis.laniel@amarulasolutions.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Sun, 6 Feb 2022 19:37:15 +0100 Francis Laniel 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 > Reviewed-by: Simon Glass > --- > 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