DescriptionAndroid: support glob-style gtest filters with content browser tests
This patch makes it possible to use glob-style gtest filters with
the content browser tests. An example of such a filter is
WebGLConformanceTest.*, which should cause all the WebGL conformance
tests to be run.
Previously the gtest filter was passed directly to the test executable,
causing it to run all matching tests successively in the same process.
Normally this would be fine, but with content browsertests we must run
each test in a fresh process to avoid issues with double initialization.
The fix is to expand the filter to a flat list of tests in the test
dispatcher. After this, the tests are sharded and run in exactly the
same way as when no gtest filter is provided.
BUG=138226
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204680
Patch Set 1 #
Total comments: 2
Patch Set 2 : Better docstring. #
Total comments: 4
Patch Set 3 : Use existing gtest filter evaluation code. #
Total comments: 3
Patch Set 4 : Move shared code to build/pylib. #
Total comments: 1
Patch Set 5 : Rename to build/buildpylib. #
Total comments: 4
Patch Set 6 : Add FilterTestNames. #Patch Set 7 : Move code to build/util/lib. #
Total comments: 2
Patch Set 8 : Delete unneeded import. #
Total comments: 2
Patch Set 9 : Use DIR_SOURCE_ROOT. #
Messages
Total messages: 34 (0 generated)
|