sandbox: Provide an option to skip flattree tests

When OF_LIVE is enabled, sandbox runs tests with that and with flattree.
When debugging tests, this is often just a distraction.

Provide a -F option to skip the flattree tests in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-05-02 08:45:59 -06:00
parent 0b9c620c08
commit d6ef1f6220
4 changed files with 24 additions and 1 deletions

View File

@@ -288,4 +288,15 @@ static inline void test_sf_set_enable_bootdevs(bool enable)
#endif
}
static inline bool test_flattree_test_enabled(void)
{
#ifdef CONFIG_SANDBOX
struct sandbox_state *state = state_get_current();
return !state->no_flattree_tests;
#else
return true;
#endif
}
#endif /* __TEST_TEST_H */