From patchwork Thu Oct 3 15:22:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 832405 Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp343331wra; Thu, 3 Oct 2024 08:24:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDRRtpMTNRMXtirUrwT4CW5hlTwMnnAAlK+bu30ESKb9Mmu9aVb4s76tDK+aeiAJiHICwatw==@linaro.org X-Google-Smtp-Source: AGHT+IGvkUM4rbFCdPKO+sBIkbZfSFzD3aA0wOKJgKVHeWkb0MzqyETcHXB2lGYYjSf/Egdh9w3h X-Received: by 2002:a05:6e02:1c03:b0:3a0:9d62:3b65 with SMTP id e9e14a558f8ab-3a365918290mr66578965ab.3.1727969085425; Thu, 03 Oct 2024 08:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727969085; cv=none; d=google.com; s=arc-20240605; b=kMjBq+satzCFYTkRZrVcwfM5NLV1PmWd/j2HyAOm51iq/crgEZ3j314KRl9O/D1VLh W7zaQMZV2kqPJhDb9lG9AmOULTpZJs2T/K7Ey5b/Yt0ZVMeU+bXEQeeNvOhOwzqprhZc imHTNK5R4AP/ilEg/IHlvEYqFqlJ2/ydmOdkJL5NhXgaQhpy1+mRegfxxYXtq9Z/L9Zv UdJ3pRIMXssWLRB+iP9FGkUHtvHTLE9o29akHuDaB1ANA+r0d/pDGaW7rlP5sDD01507 CnTCLGmg/UjyQ35KN1V4OfWFCF3wxRdsxmvaYuHze2lAXrVuDTmSQe/WgCDxVEn4TDLc Dx7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0Jltn/X1Y1l7bLIIzXvV51M2plK+/RLLaLwiXUPWAo8=; fh=MVi58pieQiK5+fPNjqZOASQjEAM8Iutfp98Ij2EPMok=; b=cbOPUhL1FiPAfOoDR74ekVDPb1Gljo2z8AazsORGyeUANQTwxAIYznYP8L22qPfItb rZLTWutZAaA8qTJBHHvvUKEXTV9CefVjBF78LD+f8HXZ/+gQdeoyEm7HlzlYwEsjgJTL OwmUiUGYJwzoNzl/X/fPT9059mXVQq4m6cRhZEaChevkwb6W4pEOVo12evkpjxROHe3K F8tEDPQmqFg064yvJb8uvTDJtuuOPMD0bDGNZcbaOEPeTkeM989Vxr6NDpELORDEVJH+ 04qBiDgpRt8dWuo2C14dcQpHavt6UrsfdjQs/TfFyxCiYN9Pgoafkk/c003q+nmuJes0 Qf4g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KM4EyZ17; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id e9e14a558f8ab-3a371639024si6010425ab.205.2024.10.03.08.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 08:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KM4EyZ17; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD70B88EBB; Thu, 3 Oct 2024 17:23:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="KM4EyZ17"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EE5E588418; Thu, 3 Oct 2024 17:23:46 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 EF29A88418 for ; Thu, 3 Oct 2024 17:23:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jerome.forissier@linaro.org Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-42e82f7f36aso9846695e9.0 for ; Thu, 03 Oct 2024 08:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727969024; x=1728573824; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0Jltn/X1Y1l7bLIIzXvV51M2plK+/RLLaLwiXUPWAo8=; b=KM4EyZ17CLwK5YKm0ZmBRxismDvm0DPGaERNxKQIC2bhBloMmWfk0gaN+CVZZvoUx3 ho5i5zVBKhxE30dGK+CA1D9wj1Ex6SQXLX//g0uJ/cJzzQLWa1JwwK/dGxMJyk9JT7d7 SHi5VN7z76Gnw3iD1OgytamufOTTLwZpiNgt9VNy99I2IGcNjAChykkUQLOK6ihwsW0m h/1U5nf9tYe7u8gMpPXKVJjlwZQlleoDNlqHatYODP6VV3nIxpoaR7dQ/ua92ElbU5w6 BPf9wuuZj7hfGvAbFvXxyHKR+8xjcdfyN+SCzhBtgYfoqiTgv41semcqcKBGUZY0Jig6 XMrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727969024; x=1728573824; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0Jltn/X1Y1l7bLIIzXvV51M2plK+/RLLaLwiXUPWAo8=; b=ER8v840aQtbxb3OokHOFrMa8Pgd4JFmzcL3Ht36GBTT2XTP4QDVW1gpnZXzui5x/wj 1wlkLyo1OgeAFKKTAOumxIy4/NbeT1R7ZUEsek0du741sLjMHp2jeenf1AeUXSlEukZl q9tN8GlbBF5fmL4f7JwchNbcXRdhm0Pxq3EUtHPL3FSY+0BOLDrlKUYwSP4YoZVfDHoX l1xW26Y0MXuql23P6VMc6zxByZA1UphVzu/9254VEej5HyC6R3p6fEKOlng0nXKTkgUw wSmexmKJ3vo8aQG9zrCTHevaVxMFO0kK/BzciY5p7s340Lbz0CMcAUlqk80I9s35wNo4 UTAQ== X-Gm-Message-State: AOJu0YyYrzrzf0LEmrZkbPSfd1OCNQSerqbF3Mfr6XTJlEuZIk3Uv7Jb pGlgrkJkJwVLawyvThL1XGInWaSNKkfNucizK/fXvrlwSMro6wF3lWSeAIbdWazE2O9hekPI4PM +txqFHw== X-Received: by 2002:a05:600c:4f4d:b0:42f:80a7:84e0 with SMTP id 5b1f17b1804b1-42f80a787c0mr16786935e9.32.1727969024153; Thu, 03 Oct 2024 08:23:44 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:d888:7a58:deed:47d6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d081f7482sm1506220f8f.8.2024.10.03.08.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 08:23:43 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Anton Antonov , Jerome Forissier , Simon Glass , Tom Rini , Mattijs Korpershoek , AKASHI Takahiro , Heinrich Schuchardt , Francis Laniel Subject: [PATCH v11 06/29] test: boot: fix bootflow_cmd_label for when DSA_SANDBOX is disabled Date: Thu, 3 Oct 2024 17:22:52 +0200 Message-Id: <2e8206d8bbd7d3140cf2734ca9b3fcd12ced4f14.1727968902.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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.8 at phobos.denx.de X-Virus-Status: Clean When DSA_SANDBOX is not set, the sandbox tests fail as follows: $ ./test/py/test.py --build-dir=$(pwd) -k bootdev_test_any [...] Scanning for bootflows with label '9' [...] Cannot find '9' (err=-19) This is due to the device list containing two less entries than expected. Therefore, look for label '7' when DSA_SANDBOX is disabled. The actual use case is NET_LWIP=y (to be introduced in later patches) which implies DSA_SANDBOX=n for the time being. Signed-off-by: Jerome Forissier Reviewed-by: Simon Glass --- test/boot/bootflow.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c index 6ad63afe90a..c440b8eb778 100644 --- a/test/boot/bootflow.c +++ b/test/boot/bootflow.c @@ -109,9 +109,12 @@ static int bootflow_cmd_label(struct unit_test_state *uts) * 8 [ ] OK mmc mmc2.bootdev * 9 [ + ] OK mmc mmc1.bootdev * a [ ] OK mmc mmc0.bootdev + * + * However with CONFIG_DSA_SANDBOX=n we have two less (dsa-test@0 and + * dsa-test@1). */ - ut_assertok(run_command("bootflow scan -lH 9", 0)); - ut_assert_nextline("Scanning for bootflows with label '9'"); + ut_assertok(run_command("bootflow scan -lH 7", 0)); + ut_assert_nextline("Scanning for bootflows with label '7'"); ut_assert_skip_to_line("(1 bootflow, 1 valid)"); ut_assertok(run_command("bootflow scan -lH 0", 0));