From 1db7894472c9c67596683b185a8b48b1138a4547 Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Wed, 22 Jul 2009 14:56:49 +0000 Subject: 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 --- tools/purify/chrome_tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') 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. -- cgit v1.1