diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 14:56:49 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 14:56:49 +0000 |
commit | 1db7894472c9c67596683b185a8b48b1138a4547 (patch) | |
tree | e808bd8cbe236b9411ad6738951c6c4b3356fb2c /tools/purify | |
parent | dc7d38108db0e1821a807d6b56947ea6f130d3d1 (diff) | |
download | chromium_src-1db7894472c9c67596683b185a8b48b1138a4547.zip chromium_src-1db7894472c9c67596683b185a8b48b1138a4547.tar.gz chromium_src-1db7894472c9c67596683b185a8b48b1138a4547.tar.bz2 |
When --gtest_filter is specified, we need to ignore the batch index, otherwise you wind up being unable to run your specific test.
BUG=none
TEST=none
TBR=huanr
Review URL: http://codereview.chromium.org/159195
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/purify')
-rw-r--r-- | tools/purify/chrome_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/purify/chrome_tests.py b/tools/purify/chrome_tests.py index 9678dc4..e349cb2 100644 --- a/tools/purify/chrome_tests.py +++ b/tools/purify/chrome_tests.py @@ -344,6 +344,10 @@ class ChromeTests: multi=True) def TestUI(self): + # If --gtest_filter is set, then we need to ignore the batch index. + if self._options.gtest_filter: + return self.TestUIAll() + # Similar to layout test, we run a slice of UI tests with each run. # This is achieved by using --batch-count (total number of slices) and # --batch-index (current slice index) command line switches of UI tests. |