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 E6AEDEB64D8 for ; Tue, 20 Jun 2023 08:23:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B6FD86346; Tue, 20 Jun 2023 10:23:32 +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="VP5F72q4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DB5786341; Tue, 20 Jun 2023 10:23:27 +0200 (CEST) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 22E8486342 for ; Tue, 20 Jun 2023 10:23:24 +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-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-510d6b939bfso6112639a12.0 for ; Tue, 20 Jun 2023 01:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687249403; x=1689841403; 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=rTc85tdCejgwCrGeAQDNxaVrxhE4B9pAEhI0PRqkYgw=; b=VP5F72q4xwXIYio5sIBP3VMw98Xd8GEm4DO4mV1+wDPHFJ/ScM/8jE7/oQDvsyjPSd 7wH08d3LlYGEh7+GsaZyqXE1EMZry4XoOTIz92KJt2cvZvlknbd4mCT+Oiv0ks0vY1xK MIoMlCqwYz2GbUKNPocMbsM4noHPDfshJ8+s8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687249403; x=1689841403; 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=rTc85tdCejgwCrGeAQDNxaVrxhE4B9pAEhI0PRqkYgw=; b=TlIIqlifM3uLT5eHyp5+KOhyPjrutCDOi3oqMQeP0t9CuS0knBVOFeV2dLyUPdtdty mmdGlzWIExg2OxujxUKroY0NZR7/GiNhO1gbMbu0MEzkopVEKZSq15bJGqNw4LJ/I7wj avDE1BQo4Oq7SluzQnYPXR9+btWSpJt/8QhkAidn3WtJFd1GojE1aQ8rxtXasQd3F1Wc kD+MTA9wOHPX1umBtFeEsRf3U5nRgIMzpxYmFU8aXEQc8Zbnl6g0916Iievgu8tn07bJ phh80Qr88zeLLOp2eahVWwGi1AQeTaI75wapptgMkGbeVmiG+4M5SQHnhuE4PEEgur1/ 88UA== X-Gm-Message-State: AC+VfDxm+oZheCNuxblhnEgpbgy7rpobM6Vrism0GmWWchax3nTEFOnh V5adL2GtbUYbc8Hf+tkszNNFlq1gMeR2ixsZtFw= X-Google-Smtp-Source: ACHHUZ4+o3uiUN/OA1M0rS1eyk3zx6fLLmKUr34Q0VVtshu3TCmaiv0aevI3LV01XA12rIaF+HMyTg== X-Received: by 2002:a50:fb0e:0:b0:51a:47d4:f515 with SMTP id d14-20020a50fb0e000000b0051a47d4f515mr5490952edq.27.1687249403445; Tue, 20 Jun 2023 01:23:23 -0700 (PDT) Received: from sjg1.roam.corp.google.com (79-67-123-132.dynamic.dsl.as9105.com. [79.67.123.132]) by smtp.gmail.com with ESMTPSA id y19-20020aa7c253000000b005148e981bd3sm768360edo.12.2023.06.20.01.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 01:23:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Bin Meng Subject: [PATCH v2 02/19] test: Skip flat-tree tests if devicetree is not used Date: Tue, 20 Jun 2023 09:22:33 +0100 Message-ID: <20230620082257.1678140-2-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230620082257.1678140-1-sjg@chromium.org> References: <20230620082257.1678140-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 b3c30d929376..f770bdb81ea9 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.162.gfafddb0af9-goog