diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-08 03:34:51 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 17:57:29 +0300 |
commit | 4b8b27e3d2f0825c58f9982b36cf941ad007cbda (patch) | |
tree | 4472a2e24e2feb5a91b0b5db836190ae0cb19387 /test/dm/test-dm.c | |
parent | d8ed234b29d070b980a5335e72ebd26cb923ae66 (diff) | |
download | u-boot-4b8b27e3d2f0825c58f9982b36cf941ad007cbda.tar.xz |
test: Move do_autoprobe() to test_pre_run()
Move this step over to the pre-run function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/test-dm.c')
-rw-r--r-- | test/dm/test-dm.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/dm/test-dm.c b/test/dm/test-dm.c index 4cb0da13b7..c2e1a1b920 100644 --- a/test/dm/test-dm.c +++ b/test/dm/test-dm.c @@ -43,21 +43,6 @@ static int dm_test_init(struct unit_test_state *uts, bool of_live) return 0; } -/* Ensure all the test devices are probed */ -static int do_autoprobe(struct unit_test_state *uts) -{ - struct udevice *dev; - int ret; - - /* Scanning the uclass is enough to probe all the devices */ - for (ret = uclass_first_device(UCLASS_TEST, &dev); - dev; - ret = uclass_next_device(&dev)) - ; - - return ret; -} - static int dm_test_destroy(struct unit_test_state *uts) { int id; @@ -91,8 +76,6 @@ static int dm_do_test(struct unit_test_state *uts, struct unit_test *test, uts->start = mallinfo(); if (test->flags & UT_TESTF_SCAN_PDATA) ut_assertok(dm_scan_plat(false)); - if (test->flags & UT_TESTF_PROBE_TEST) - ut_assertok(do_autoprobe(uts)); ut_assertok(test_pre_run(uts, test)); |