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 B2805ECAAA1 for ; Wed, 31 Aug 2022 03:09:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A88D849F1; Wed, 31 Aug 2022 05:09:41 +0200 (CEST) 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="g6cXBtZd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 204EC849EA; Wed, 31 Aug 2022 05:09:36 +0200 (CEST) Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (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 D5256849F8 for ; Wed, 31 Aug 2022 05:09:12 +0200 (CEST) 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-oa1-x34.google.com with SMTP id 586e51a60fabf-11f34610d4aso10542764fac.9 for ; Tue, 30 Aug 2022 20:09:12 -0700 (PDT) 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; bh=18zl0BQsTOdMOkOaRTfE/44jcUrzuNdyUiNbbZ8i4AU=; b=g6cXBtZd72G3Q6jJ6ORr50vFNUkSOL2sMj+Gd7uyivLEiDPYRALSbV5Ei3TVVoWGz2 4B8VP+aB/2BS7azF7paQ7NRvw5dRBBptM8A0z6+ru3PcSoRnivWG2YV2KV9YeaeVzn8H S6R9NjDSHIoPVt5oRy24rL+1Fl0+/7T82tdu8= 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; bh=18zl0BQsTOdMOkOaRTfE/44jcUrzuNdyUiNbbZ8i4AU=; b=LFN1kOHFVoHkKkXoJoGBfdFMNJNs+HYQVzN89QXCgtbwhS96CjOuMYLK4Z1DyEEPni GIx6UTMh5vQBM97QVE3I1cDdRs/zX+ml6+SGyTmd1EJtjaTD6gqz8a5bmgpqToohBACV JF6wHtQqWViWtZJlhfB7buYub3N3LKDo1ywZMCSpgjaFYM7MxHvF8/JzsXUkYzYrHrvE iufajUf7UiSMNFVDXJOCTVFejLgXI+YEGNtxOMJey7R8x5VmDKtDLqePvSA06aUkQYR7 eaH9jm9h4R5dUdTGFvT++KqqK1dsiqi+LIIrhfmRUBS3ulhKA0nNDYFVSGtGudqoTNCC U/kg== X-Gm-Message-State: ACgBeo0qGMbcKd8UoqvAYk842uJa/m/zewVLqWPqDrvkA0NImSMOGwom f49Zg6T8aYIDVTKEf+r38Q2a0th2brC6FA== X-Google-Smtp-Source: AA6agR4+fLQlDFyzpd51yIjQtAkCaOseBgNwBHtAuPZ+/BudV1Q921qSeLv29S6ykG7tVEPTmffpnQ== X-Received: by 2002:a05:6870:58aa:b0:118:307d:bb43 with SMTP id be42-20020a05687058aa00b00118307dbb43mr523100oab.82.1661915352354; Tue, 30 Aug 2022 20:09:12 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id fp39-20020a05687065a700b00116d5103487sm9282605oab.31.2022.08.30.20.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 20:09:12 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Michal Simek , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Kishon Vijay Abraham I , Tom Rini , Simon Glass , Heinrich Schuchardt Subject: [PATCH 13/21] test: Drop the UT_TESTF_LIVE_OR_FLAT flag Date: Tue, 30 Aug 2022 21:08:09 -0600 Message-Id: <20220831030817.27804-14-sjg@chromium.org> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog In-Reply-To: <20220831030817.27804-1-sjg@chromium.org> References: <20220831030817.27804-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 This was a workaround for a rare situation. Now that it will be more common and we have a proper fix, drop the flag. We can run both types of tests in the same sandbox executable, even if the flat device tree is modified. Signed-off-by: Simon Glass --- include/test/test.h | 2 -- test/dm/ofnode.c | 8 +++----- test/test-main.c | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/include/test/test.h b/include/test/test.h index ada0bb0a25d..c028bbb8c89 100644 --- a/include/test/test.h +++ b/include/test/test.h @@ -52,8 +52,6 @@ enum { UT_TESTF_CONSOLE_REC = BIT(5), /* needs console recording */ /* do extra driver model init and uninit */ UT_TESTF_DM = BIT(6), - /* live or flat device tree, but not both in the same executable */ - UT_TESTF_LIVE_OR_FLAT = BIT(4), }; /** diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index 76346e37d1f..a36fd104048 100644 --- a/test/dm/ofnode.c +++ b/test/dm/ofnode.c @@ -584,7 +584,7 @@ static int dm_test_ofnode_livetree_writing(struct unit_test_state *uts) return 0; } DM_TEST(dm_test_ofnode_livetree_writing, - UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT | UT_TESTF_LIVE_OR_FLAT); + UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); static int dm_test_ofnode_u32(struct unit_test_state *uts) { @@ -599,8 +599,7 @@ static int dm_test_ofnode_u32(struct unit_test_state *uts) return 0; } -DM_TEST(dm_test_ofnode_u32, - UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT | UT_TESTF_LIVE_OR_FLAT); +DM_TEST(dm_test_ofnode_u32, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); static int dm_test_ofnode_add_subnode(struct unit_test_state *uts) { @@ -619,5 +618,4 @@ static int dm_test_ofnode_add_subnode(struct unit_test_state *uts) return 0; } -DM_TEST(dm_test_ofnode_add_subnode, - UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT | UT_TESTF_LIVE_OR_FLAT); +DM_TEST(dm_test_ofnode_add_subnode, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); diff --git a/test/test-main.c b/test/test-main.c index d285872d111..97ba25d927c 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -410,8 +410,7 @@ static int ut_run_test_live_flat(struct unit_test_state *uts, /* Run with the live tree if possible */ runs = 0; if (CONFIG_IS_ENABLED(OF_LIVE)) { - if (!(test->flags & - (UT_TESTF_FLAT_TREE | UT_TESTF_LIVE_OR_FLAT))) { + if (!(test->flags & UT_TESTF_FLAT_TREE)) { uts->of_live = true; ut_assertok(ut_run_test(uts, test, test->name)); runs++; -- 2.37.2.672.g94769d06f0-goog