[PATCH v2 14/40] test: Move dm_scan_plat() to test_pre_run()