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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user