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 D742CEB64D9 for ; Wed, 12 Jul 2023 15:05:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 419DA86B20; Wed, 12 Jul 2023 17:05:08 +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="J3aqlMPy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B0FEC86B15; Wed, 12 Jul 2023 17:05:05 +0200 (CEST) Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (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 4E88F86AEE for ; Wed, 12 Jul 2023 17:05:01 +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-il1-x12a.google.com with SMTP id e9e14a558f8ab-34617b29276so1971565ab.0 for ; Wed, 12 Jul 2023 08:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689174300; x=1691766300; 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=/ogMNif7QFGV5JmmYoTpClTSEkf7dE3kvBc4LwXuRIA=; b=J3aqlMPyTPh4Q+Sy6/UQayZOL3PyioJLr1iZmJEDbJIRZbJG4t+SCnXxC4DaCnM/9X ZwdZJSyLH8r3EZO33ZO8IEsX0J/lbVfW0XwL5sndoFnD0zQN+YoKb02H3ZLZPwVbG4Vl l1+R5dJbU/lXYSiHvHtX9/f1ejtS7qaiCBraM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689174300; x=1691766300; 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=/ogMNif7QFGV5JmmYoTpClTSEkf7dE3kvBc4LwXuRIA=; b=fjddpLjxhsMdHeXuZA0E+vdwv/yf6vWJ6RlXZaYHWga2uMRT7a1p1KVF6Go/5XWGoP fWyPrSLgnNuQacLUn/epdQ4+PQKBt+EoLH0loXYBRh/s33NqiYYPYOz40k07e4NmnRuC L3PwSHROp9AmOrEW1g8Q2GKnj3nVNi+RuduHSvrnsorT19JTio+l8tpYAuyYuc2pArNC pTI6prwVMsFuQKOwkXKDw0/rQ79BnIfWpaeWUoEc/5JJ/a0NQYLzu0G1/Gyskj9iYDjU LS1+75eICOpjk3AInbVvYcAU0mTDDFFaYg/uIIkNyIfL1q2fluEeG1/+BLGPSviZVyEB YdKA== X-Gm-Message-State: ABy/qLbStT2sQBvukaErdJbKltBbxxNP1MHnA9m5CarmpZN9Bzkq/InK BV/5Ny6VBYnq3tG9UEZKICeps9OZPwEMCyIw6qs= X-Google-Smtp-Source: APBJJlHr8e9V6yyNqzGLTcLIbYUFbfpZHemr0zYNCkJvEWPezscFCum8KA2NgqWPn+CGYOR9HzS+BA== X-Received: by 2002:a05:6e02:1d95:b0:345:abfe:e136 with SMTP id h21-20020a056e021d9500b00345abfee136mr1910873ila.9.1689174299936; Wed, 12 Jul 2023 08:04:59 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id h16-20020a0566380f1000b0042b08954dc3sm1202958jas.33.2023.07.12.08.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 08:04:59 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Bin Meng , Simon Glass Subject: [PATCH v3 01/18] test: Skip flat-tree tests if devicetree is not used Date: Wed, 12 Jul 2023 09:04:30 -0600 Message-ID: <20230712150453.2407923-2-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.390.g38632f3daf-goog In-Reply-To: <20230712150453.2407923-1-sjg@chromium.org> References: <20230712150453.2407923-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.8 at phobos.denx.de X-Virus-Status: Clean Many tests don't actually use the devicetree at all so there is no point in running the tests both with livetree and flat tree. Check for this and skip the flat tree test in that case. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- (no changes since v1) test/test-main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-main.c b/test/test-main.c index 2a3b2ba364a8..778bf0a18a0f 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -476,7 +476,8 @@ static int ut_run_test_live_flat(struct unit_test_state *uts, * (for sandbox we handle this by copying the tree, but not for other * boards) */ - if (!(test->flags & UT_TESTF_LIVE_TREE) && + if ((test->flags & UT_TESTF_SCAN_FDT) && + !(test->flags & UT_TESTF_LIVE_TREE) && (CONFIG_IS_ENABLED(OFNODE_MULTI_TREE) || !(test->flags & UT_TESTF_OTHER_FDT)) && (!runs || ut_test_run_on_flattree(test)) && -- 2.41.0.390.g38632f3daf-goog