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 502E9C63708 for ; Wed, 7 Dec 2022 09:10:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E8A684BD1; Wed, 7 Dec 2022 10:04:00 +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="OIXbEAgy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BD85384BD1; Wed, 7 Dec 2022 10:03:58 +0100 (CET) Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (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 75C6A855AA for ; Wed, 7 Dec 2022 09:54:29 +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-pg1-x529.google.com with SMTP id q1so15660174pgl.11 for ; Wed, 07 Dec 2022 00:54:29 -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=zBm7bvSxiTxxHB/2oSeYEk3GKQj9KYprNd4cdJkxQu8=; b=OIXbEAgydxIOCBtoGvgee+SOMBwO8TEH1ln2buHEzEzhHPequXJFCLwHb8n5L9wF0u I5ZlXqvxWiG7esoGIv5HBlvke8fyUgK/7nIeyCsFxzLUKQc8KO3hL18ugHlZF83cj+HL Ox2ZcXplld3PySZck4QrjKDafIOaRJjlnnzWc= 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=zBm7bvSxiTxxHB/2oSeYEk3GKQj9KYprNd4cdJkxQu8=; b=0Pn6mPXGaPs/FuHq6/L6vYt1BAgchoE4UTiTDHjAoMyDRqUqux+TK+RNYyARk78aSn /key0w+aHrfAr9NmuqyfN3trVTTpzlaf6qzfj0hJDpETL7swyuCg4xff+yFB7Gku4kRv oQWoULPgBiEkK80bm7eFphAOju1Uy8JOkO42WrcOmfSHC/XX6ycIqxAy9qle8ILGKJPL J2pein1uo7LAPwxgXxA8qObcrHic5OUz5zt9yd2z0uSuYY5VXdfsuKL9X+uTHildu1fx U7weT3yhlcO1s3lqdy6iEc65X27cVhtGkp/ROVH6u5iaNGFBWwvhzVVDlj4eekCwJkna eObA== X-Gm-Message-State: ANoB5pnMn5CENeKDGFbxJxllT9JzSx249R8xoMCAxtsfruUNfLpVGl/5 NgcNjcRWw64XMYUxwDP5606/+TSv+4ymnTDm X-Google-Smtp-Source: AA0mqf5bwI+PxxK84a/ZoOlAq4x9QaOq9TEHGUbb+vnlQVzQLD8csxt71apd5Ue72P89aelwzixYmg== X-Received: by 2002:a65:694e:0:b0:474:6749:407d with SMTP id w14-20020a65694e000000b004746749407dmr62212190pgq.425.1670403267593; Wed, 07 Dec 2022 00:54:27 -0800 (PST) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id l16-20020a170903121000b0018157b415dbsm14145514plh.63.2022.12.07.00.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 00:54:27 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: U-Boot Custodians , Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH 12/71] dm: part: Update test to use mmc2 Date: Wed, 7 Dec 2022 21:50:38 +1300 Message-Id: <20221207085137.445249-13-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog In-Reply-To: <20221207085137.445249-1-sjg@chromium.org> References: <20221207085137.445249-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 --- 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.rc0.267.gcb52ba06e7-goog