summaryrefslogtreecommitdiffstats
path: root/tools/purify
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-22 14:56:49 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-22 14:56:49 +0000
commit1db7894472c9c67596683b185a8b48b1138a4547 (patch)
treee808bd8cbe236b9411ad6738951c6c4b3356fb2c /tools/purify
parentdc7d38108db0e1821a807d6b56947ea6f130d3d1 (diff)
downloadchromium_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.py4
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.