mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-13 21:36:57 +00:00
test: Skip flat-tree tests if devicetree is not used
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
e6e67bb9e0
commit
6ec5178c0e
1 changed files with 2 additions and 1 deletions
|
@ -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)) &&
|
||||
|
|
Loading…
Add table
Reference in a new issue