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 C6F34C05027 for ; Tue, 24 Jan 2023 01:39:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6B4B85348; Tue, 24 Jan 2023 02:39:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="OhyTnUCm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4B192850CC; Tue, 24 Jan 2023 02:39:30 +0100 (CET) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (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 475F084931 for ; Tue, 24 Jan 2023 02:39:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2e.google.com with SMTP id g10so10665767qvo.6 for ; Mon, 23 Jan 2023 17:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YVnkJV1Lr5DaMa1+b3wZ9aVszx33xytfjjY3FGMqgHQ=; b=OhyTnUCmfBMrIZ2wrLeLkOKJ/Y0j8GXAL+FMP7ckuxjGeDgZszRmR8LrRaFCQ7xBVt RrtthFZi9/P03Ba8p6xhHhLnRJK0y+FrYMbSuWzKupWFbXy8F+84lmoWfqg7KYRN5Xmy YsSqUz0Ef4XPJIgab9CTZh93oK7v2FbFeuc00= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YVnkJV1Lr5DaMa1+b3wZ9aVszx33xytfjjY3FGMqgHQ=; b=ZauYP9ol8LyCBXTmmKbhsU6XBSa+3iUxiYhaIchDeFyln1JxVKqUVVMewVOqEq3VwE jGX1SFlTeURtIUiFLTKHYX9dcCEsasekB6gJCrqFJMfxYQ8IOnBrV0VXFzp5W/ayM5Oz gGMk9zgg9t/uayPOtL3vq1HwN3TxY3ZJgNAxyp69yPKYtLLjXCI/C8WgQZy5Ju2pjDnb MIKlLTGtd81AfvegkcqN0NkXvMapbtAnMgDu9Ahhra0tKrsA7LwyKHqP2QM7u/lFuzRo cOccdbWQg47Q6bpLWtQ4bahCKOLyPRkPSYTNbtugumqbhkHM8zXgk+HJCHpM//2zJl/S LK6Q== X-Gm-Message-State: AFqh2kqcCevvBKpgF7Gx96/e0iUUDqfd6t/rtOpWTN9TMvOQRfkN7ROT F5CocqzW0fb4fyYKt80aQmQkaEcOUkT8Q9osKn8= X-Google-Smtp-Source: AMrXdXtLrrLgkfdb08+uDhfezxkiqYhMu8rxcSF8OrhLIJn8Dw/3q45bs1LJUUB9kMEE4tVR5pyMXw== X-Received: by 2002:a05:6214:802:b0:4c7:595c:9940 with SMTP id df2-20020a056214080200b004c7595c9940mr38595247qvb.51.1674524364982; Mon, 23 Jan 2023 17:39:24 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-6451-01cf-0286-1d77.res6.spectrum.com. [2603:6081:7b00:6400:6451:1cf:286:1d77]) by smtp.gmail.com with ESMTPSA id l123-20020a37bb81000000b006fb8239db65sm564594qkf.43.2023.01.23.17.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 17:39:24 -0800 (PST) Date: Mon, 23 Jan 2023 20:39:22 -0500 From: Tom Rini To: Simon Glass Cc: u-boot@lists.denx.de Subject: Re: [PATCH v3 12/70] dm: part: Update test to use mmc2 Message-ID: <20230124013922.GF631605@bill-the-cat> References: <20230117174820.1281477-1-sjg@chromium.org> <20230117174820.1281477-13-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HL+2C3YiDdBCOf2R" Content-Disposition: inline In-Reply-To: <20230117174820.1281477-13-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --HL+2C3YiDdBCOf2R Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 17, 2023 at 10:47:22AM -0700, Simon Glass wrote: > At present this test sets up a partition table on mmc1. But this is used > by the bootstd tests, so it is not possible to run those after this test > has run, without restarting the Python test harness. >=20 > This is inconvenient when running tests repeatedly with 'ut dm'. Move the > test to use mmc2, which is not used by anything. >=20 > Signed-off-by: Simon Glass When I run tests like this: TEST=3D"not sleep and not event_dump and not bootmgr and not extension" =2E/tools/buildman/buildman -o /tmp/sandbox -P --board sandbox =2E/test/py/test.py --bd $ARGS --build-dir /tmp/sandbox -k "$TEST" -ra I get: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAILURES =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D _________________________________ test_ut[ut_dm_dm_test_part] _____________= ____________________ test/py/tests/test_ut.py:341: in test_ut assert output.endswith('Failures: 0') E assert False E + where False =3D ('Failures: 0') E + where =3D '= Test: dm_test_part: part.c\r\r\n** No device specified **\r\r\nCouldn\'t fi= nd partition mmc \r\r\n** No device ...: 0 =3D=3D do_test(uts, 2, "1:= 2", 0): Expected 0x0 (0), got 0x1 (1)\r\r\nTest dm_test_part failed 4 times= \r\r\nFailures: 4'.endswith ------------------------------------ Captured stdout call -----------------= -------------------- =3D> ut dm dm_test_part Test: dm_test_part: part.c ** No device specified ** Couldn't find partition mmc ** No device specified ** Couldn't find partition mmc ** No partition table - mmc 0 ** Couldn't find partition mmc 0 Could not find "test1" partition ** Bad device specification mmc #test1 ** ** Bad device specification mmc #test1 ** Couldn't find partition mmc #test1 ** Bad partition specification mmc 1:0 ** Couldn't find partition mmc 1:0 ** Invalid partition 2 ** Couldn't find partition mmc 1:2 test/dm/part.c:20, do_test(): expected =3D=3D part_get_info_by_dev_and_name= _or_num("mmc", part_str, &mmc_dev_desc, &part_info, whole): Expected 0x2 (2= ), got 0xfffffffe (-2) test/dm/part.c:82, dm_test_part(): 0 =3D=3D do_test(uts, 2, "1:2", 0): Expe= cted 0x0 (0), got 0x1 (1) Test: dm_test_part: part.c (flat tree) ** No device specified ** Couldn't find partition mmc ** No device specified ** Couldn't find partition mmc ** No partition table - mmc 0 ** Couldn't find partition mmc 0 Could not find "test1" partition ** Bad device specification mmc #test1 ** ** Bad device specification mmc #test1 ** Couldn't find partition mmc #test1 ** Bad partition specification mmc 1:0 ** Couldn't find partition mmc 1:0 ** Invalid partition 2 ** Couldn't find partition mmc 1:2 test/dm/part.c:20, do_test(): expected =3D=3D part_get_info_by_dev_and_name= _or_num("mmc", part_str, &mmc_dev_desc, &part_info, whole): Expected 0x2 (2= ), got 0xfffffffe (-2) test/dm/part.c:82, dm_test_part(): 0 =3D=3D do_test(uts, 2, "1:2", 0): Expe= cted 0x0 (0), got 0x1 (1) Test dm_test_part failed 4 times Failures: 4 =3D> And further tests down the series also fail / introduce failures, but this is the first one, and why I thought v2 had more problems. --=20 Tom --HL+2C3YiDdBCOf2R Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPPNscACgkQFHw5/5Y0 tyyh7QwArvvVaAo1g9RjLpwiVtSBz8fdbaynC0QeT03TP7/+ixGKg4x+3axc41RP 50Am/HSrTU/wr3gtCcuCZ0NUSvzlVUjIRaADHbyHcecGR2gj1s4yAU77ExpEjSNr z7I8Cfi+3iFXC5hSfe2WLXoKGNboSwcmWolh7OIXE/9CL4qyC/PCxOPiz78aZb7k c7q5ngQ+yGCDVv5lisZk5WUZgUW+j3KDWWbdg8u22WLDQ6KXsDP2l2ZMnDNtlkS/ 0De1jfBiwsYNoPP3k7NM0RXZI2YxFKetZadI1KNgkbmLmQwDFbVdeytiwj5FNHLQ pX8oBPqBVHCn02swrjF68MpeB9ORDaXMMUvQPwtbmALK57ZFHMuhhyAq62kvJFbn +YcMvvlPpejuli6+hmJKpaFQ2iWQ9FVhpZoRDMvwwvnTh/zKNujpmgi6N8qCx4YG RSYqKvf/azQJzuS9DLzj39L8qBSKTX7EzME3KhhpmJlfium2VFYBTmR1DWp51yR/ +y6DfXqd =hbSe -----END PGP SIGNATURE----- --HL+2C3YiDdBCOf2R--