[PATCH 01/34] test: Run tests that don't need devices

Simon Glass sjg at chromium.org
Mon Oct 2 03:15:11 CEST 2023


Tests without the UT_TESTF_SCAN_FDT flag are currently skipped unless
OF_LIVE is enabled.

Drop this condition, so that they can run on non-sandbox builds, which
often don't have OF_LIVE enabled.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 test/test-main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/test-main.c b/test/test-main.c
index 778bf0a18a0f..2a3b2ba364a8 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -476,8 +476,7 @@ 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_SCAN_FDT) &&
-	    !(test->flags & UT_TESTF_LIVE_TREE) &&
+	if (!(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.42.0.582.g8ccd20d70d-goog



More information about the U-Boot mailing list