Support the `exclude-filter` option with BazelTest

Prior to this change the list of excluded tests were passed to each
underlying test process. Although test modules were not run, this still
executed the TF sub-process and unnecessarily uploaded artifacts causing
performance issues.

This change addresses the issue by excluding test targets that shouldn't
be run.

The test runner queries Bazel to map module names to the corresponding
test target labels which are then excluded from the Bazel command-line.

Test: atest --host bazel-test-runner-tests
Bug: 273357727
Change-Id: Ibe9a24c944cebbdac642c42920c1793cea7d6ab8
2 files changed