Index: base/test/launcher/test_launcher.cc |
diff --git a/base/test/launcher/test_launcher.cc b/base/test/launcher/test_launcher.cc |
index ca60cbacea0da7ea79ffbe31f0844b902d2be630..6005db2933e118115cab0dc1862ef7876f4161a7 100644 |
--- a/base/test/launcher/test_launcher.cc |
+++ b/base/test/launcher/test_launcher.cc |
@@ -805,6 +805,9 @@ void TestLauncher::RunTests() { |
continue; |
} |
+ if (!launcher_delegate_->ShouldRunTest(test_case, test_info)) |
+ continue; |
+ |
// Skip the test that doesn't match the filter (if given). |
if (!positive_test_filter_.empty()) { |
bool found = false; |
@@ -828,9 +831,6 @@ void TestLauncher::RunTests() { |
if (excluded) |
continue; |
- if (!launcher_delegate_->ShouldRunTest(test_case, test_info)) |
- continue; |
- |
if (base::Hash(test_name) % total_shards_ != |
static_cast<uint32>(shard_index_)) { |
continue; |