From patchwork Mon Mar 7 15:48:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1602335 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=opqYAX3p; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KC2tf5n43z9sFw for ; Tue, 8 Mar 2022 02:48:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6DDFE8186D; Mon, 7 Mar 2022 16:48:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="opqYAX3p"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF0748191C; Mon, 7 Mar 2022 16:48:28 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 44F6181109 for ; Mon, 7 Mar 2022 16:48:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-wr1-x430.google.com with SMTP id k24so14529305wrd.7 for ; Mon, 07 Mar 2022 07:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c5udK4/8R72LailABBg9cE8TX3pGBjgtKw2auPej2H4=; b=opqYAX3pz24lHxoe7u86qFRiCVFGThIyqiXnFXQJQJ5SZ61rVOlsRQwGF7Nyl+PNrp UQcjmW2UfzMwJedDNPLHK4+1xKjSZY9pEwSnx55/iTirXymNUM374lw7wFry0t6g+Wgh +UXygghDN3CqgCoeLE5NNcL76r2X9AK1R4Q+3eAbkJsFBT/CqqD2fbjZSVA/CrjdYZcT AqXa1Xq8x9JDxJZYV30WCvm5B2nanSKgCAb4ny+mW1n9awN8ukvvNdmppUaQeR/+4OLs TeEms5rrwbph5F1jyLhsD7OqlCturN9YMt51Doew+lbB0orxCcufWHc0Q59c1Ix6+hVW PYOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=c5udK4/8R72LailABBg9cE8TX3pGBjgtKw2auPej2H4=; b=EaAlOs0gTRcYvK6ZY351nhQdV3EdwLfMzhUXNSMfK4fwCX+8brL1Kp+u7jH/MFH/Tt LHfSg6kodtkNTlsRRA9XU7qF55fbQxDeY5I8yCn5lS7V5YqNY7cWLRpWLHnR+hbTcuBV WKrf9FzB/h7J/XF4LvazYR7nKgzgV4VDRUeOgWhQaMfLsIMMKILsWO0emlKjQpRExnD5 jgs+KPDz5J4zJ8r6oV8RkAPXcbGAtanA2UGFaVldM98YcwJhFrXGasd4U/z1f8wASUzs nnG3rU96IitR20rs55GBktsyULiO6twkzYXo36DiqqG7B6K4s63RJ1IdvH+lCgc+vV8Z FqJA== X-Gm-Message-State: AOAM530RQ+l1BVAPli+Wf+mHgXbbXviggUaKPaduVTn1hLCJux8Hw61E J+ZSWKIFcE5sfqtjQQHH1ZevFDSM/UGJtQ== X-Google-Smtp-Source: ABdhPJyF8BrNo/qdNRUA5EaYQwCikGaQLOdiGlzaB8/4GzWSN/PyXn9bEzdsfQyklLwy2mddKScPag== X-Received: by 2002:adf:a551:0:b0:1f0:23fd:6f11 with SMTP id j17-20020adfa551000000b001f023fd6f11mr8541831wrb.7.1646668104560; Mon, 07 Mar 2022 07:48:24 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id t5-20020adff045000000b001f0684c3404sm9425092wro.11.2022.03.07.07.48.23 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Mar 2022 07:48:23 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com, Simon Glass Cc: Patrick Delaunay Subject: [PATCH] cmd: test: pinmux: Do not check all empty spaces Date: Mon, 7 Mar 2022 16:48:17 +0100 Message-Id: <03aecf4c67ec8d72bf2a90baf1516fc5bd300fe0.1646668094.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 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 There is really no value to check empty spaces. That's why use ut_assert_nextlinen() instead of ut_assert_nextline(). This change ensures that PINMUX_SIZE can be increased without changing tests. Signed-off-by: Michal Simek Reviewed-by: Patrice Chotard --- https://lore.kernel.org/all/3a6be84c8354f38754a9838670cc0319e84f29e8.1645626183.git.michal.simek@xilinx.com/ --- test/cmd/pinmux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c index 8ae807b53779..ba338b8dce85 100644 --- a/test/cmd/pinmux.c +++ b/test/cmd/pinmux.c @@ -16,18 +16,18 @@ static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts) /* Test that 'pinmux status ' displays the selected pin. */ console_record_reset(); run_command("pinmux status a5", 0); - ut_assert_nextline("a5 : gpio input . "); + ut_assert_nextlinen("a5 : gpio input ."); ut_assert_console_end(); console_record_reset(); run_command("pinmux status P7", 0); - ut_assert_nextline("P7 : GPIO2 bias-pull-down input-enable. "); + ut_assert_nextlinen("P7 : GPIO2 bias-pull-down input-enable."); ut_assert_console_end(); console_record_reset(); run_command("pinmux status P9", 0); - ut_assert_nextline("single-pinctrl pinctrl-single-no-width: missing register width"); - ut_assert_nextline("P9 not found"); + ut_assert_nextlinen("single-pinctrl pinctrl-single-no-width: missing register width"); + ut_assert_nextlinen("P9 not found"); ut_assert_console_end(); return 0;