Merge pull request #5474 from sfc-gh-ajbeamon/unit-tests-require-match
Unit tests require a match from the test pattern in order to be successful
This commit is contained in:
commit
d706a7ddd7
|
@ -110,7 +110,15 @@ struct UnitTestWorkload : TestWorkload {
|
|||
tests.push_back(test);
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stdout, "Found %zu tests\n", tests.size());
|
||||
|
||||
if (tests.size() == 0) {
|
||||
TraceEvent(SevError, "NoMatchingUnitTests").detail("TestPattern", self->testPattern);
|
||||
++self->testsFailed;
|
||||
return Void();
|
||||
}
|
||||
|
||||
deterministicRandom()->randomShuffle(tests);
|
||||
if (self->testRunLimit > 0 && tests.size() > self->testRunLimit)
|
||||
tests.resize(self->testRunLimit);
|
||||
|
|
Loading…
Reference in New Issue