Tweak the test detection mechanism

platform2 packages do not have a src_test section in their ebuild which means
that the unit tests are not run on trybots.
This change checks for both src_test or platform_pkg_test.

BUG=chromium:392504
TEST=Trybot run on daisy, link, gizmo and x86-mario. Test are run.

CQ-DEPEND=CL:207131

Change-Id: Icbc939b29fd4e3e14c4e96bb2bc0d1f7999ede94
Reviewed-on: https://chromium-review.googlesource.com/207092
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
1 file changed