On 9/29/23 12:06, Sean Anderson wrote: > SPL doesn't have OF_LIVE enabled, so we can only run tests with a flat > tree. Don't skip them even if they don't use the devicetree. > > Fixes: 6ec5178c0ef ("test: Skip flat-tree tests if devicetree is not used") > Signed-off-by: Sean Anderson <sean.ander...@seco.com> > --- > > 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 778bf0a18a0..edb20bc4b9c 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_SCAN_FDT) && > + if ((!CONFIG_IS_ENABLED(OF_LIVE) || > + (test->flags & UT_TESTF_SCAN_FDT)) && > !(test->flags & UT_TESTF_LIVE_TREE) && > (CONFIG_IS_ENABLED(OFNODE_MULTI_TREE) || > !(test->flags & UT_TESTF_OTHER_FDT)) &&
Upon further review, do we even need 6ec5178c0ef in the first place? ut_test_run_on_flattree looks like it's trying to do the same thing. --Sean