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 DBD4FC54EBC for ; Sun, 8 Jan 2023 03:05:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 10A1B85659; Sun, 8 Jan 2023 04:04:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="a8823uPT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 154BE85610; Sun, 8 Jan 2023 04:04:07 +0100 (CET) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (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 5BF1285615 for ; Sun, 8 Jan 2023 03:51:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12b.google.com with SMTP id u8so3271186ilq.13 for ; Sat, 07 Jan 2023 18:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=TtFnn9aazlPFXp2jvSUfYZqtaupmJ6qOuZtwcVOYens=; b=a8823uPTkzCIx1g/TbVesq9xhMFuaY0SrTcMpKr1xIE5jnLU3pEXBqHu4gRTUV89gD BImXT5vo57VpC2F1Oj8JHjJSW9+IRftrJw8MIKRCqY5CRNYclDeyBiD3DTEJ7WVlWwNG C8kicDIbW508Sd7TvQXtbb+3OH0Ca/1XQrRs8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=TtFnn9aazlPFXp2jvSUfYZqtaupmJ6qOuZtwcVOYens=; b=KTYKWK5mSt9rH2KDCCkXtp9VDkiUaMRZCYt2kT2/S/3zWmxKyT1RAyT2X5yRyCPtbM nHBsF+D2nMYGNcLclOqyBw5hCNkrNun3VyGp7jWYs5t4Zwcxd+MOJSPUUr4q3F5b61K0 56IPipjsD20G+DFEHH8KQSDFsNfQd0cFqlBCQNCvtVUqTj7px3He390ySnE9liPBuJZJ 4+xFX9MLpJzazziXrO+jZUVJERuPteKMo25YJ60Bhmbju23ilgp8MwWzX/z97qjbcCxq EXg0+ppq+qmM/7QM14Th5i1Y5BsWGkNHAYm47Hj/cRTgfF4UtM5WC8Jrqfp3oxT5QmfB nmww== X-Gm-Message-State: AFqh2kroMUJmyGi1KiOd0mixu2VQD36Ba7xeoqO5jKfdw5IbS9LkWg8a i+iCY5zjVRNIRiV1i6Aw8BP6pevJDG7DKQhp X-Google-Smtp-Source: AMrXdXvYSa+mHOzwDXuktPtZx2dZqSnE1Y6BOgDp7IRXnz21cxAUyNIqo4c1Pvn8FaKSq2qk6bFlmA== X-Received: by 2002:a92:c749:0:b0:30c:5d9:8f0f with SMTP id y9-20020a92c749000000b0030c05d98f0fmr31196811ilp.27.1673146266835; Sat, 07 Jan 2023 18:51:06 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-71-56-217-229.hsd1.co.comcast.net. [71.56.217.229]) by smtp.gmail.com with ESMTPSA id c17-20020a92bd11000000b00302a00aaefasm1622174ile.26.2023.01.07.18.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Jan 2023 18:51:06 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: U-Boot Custodians , Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH v2 12/71] dm: part: Update test to use mmc2 Date: Sat, 7 Jan 2023 19:49:48 -0700 Message-Id: <20230108025047.522240-13-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230108025047.522240-1-sjg@chromium.org> References: <20230108025047.522240-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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. This is inconvenient when running tests repeatedly with 'ut dm'. Move the test to use mmc2, which is not used by anything. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/part.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/dm/part.c b/test/dm/part.c index 5e4efa587c3..b60687114f1 100644 --- a/test/dm/part.c +++ b/test/dm/part.c @@ -43,7 +43,7 @@ static int dm_test_part(struct unit_test_state *uts) }, }; - ut_asserteq(1, blk_get_device_by_str("mmc", "1", &mmc_dev_desc)); + ut_asserteq(2, blk_get_device_by_str("mmc", "2", &mmc_dev_desc)); if (CONFIG_IS_ENABLED(RANDOM_UUID)) { gen_rand_uuid_str(parts[0].uuid, UUID_STR_FORMAT_STD); gen_rand_uuid_str(parts[1].uuid, UUID_STR_FORMAT_STD); @@ -63,7 +63,7 @@ static int dm_test_part(struct unit_test_state *uts) env_set("bootdevice", "0"); test(0, NULL, true); test(0, "", true); - env_set("bootdevice", "1"); + env_set("bootdevice", "2"); test(1, NULL, false); test(1, "", false); test(1, "-", false); @@ -74,8 +74,8 @@ static int dm_test_part(struct unit_test_state *uts) test(0, ".0", true); test(0, ".0:0", true); test(-EINVAL, "#test1", true); - test(1, "1", false); - test(1, "1", true); + test(1, "2", false); + test(1, "2", true); test(-ENOENT, "1:0", false); test(0, "1:0", true); test(1, "1:1", false); @@ -85,8 +85,8 @@ static int dm_test_part(struct unit_test_state *uts) test(1, "1.0:1", false); test(2, "1.0:2", false); test(-EINVAL, "1#bogus", false); - test(1, "1#test1", false); - test(2, "1#test2", false); + test(1, "2#test1", false); + test(2, "2#test2", false); ret = 0; env_set("bootdevice", oldbootdevice); -- 2.39.0.314.g84b9a713c41-goog