summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-19 19:35:14 +0000
committerpaulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-19 19:35:14 +0000
commit41cbc531dec89d74616fa83ebda9dcbf3913da8f (patch)
tree3b20b08da1431feaf1e0e922bbd1e52b23774247 /tools
parentd239203cf16ef63c5db2ace6d3c09b0f286ca98b (diff)
downloadchromium_src-41cbc531dec89d74616fa83ebda9dcbf3913da8f.zip
chromium_src-41cbc531dec89d74616fa83ebda9dcbf3913da8f.tar.gz
chromium_src-41cbc531dec89d74616fa83ebda9dcbf3913da8f.tar.bz2
Add a command line flag to the Purify script to allow skipping
the chrome.dll re-instrumentation step when running tests manually. Review URL: http://codereview.chromium.org/15085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r--tools/purify/chrome_tests.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/purify/chrome_tests.py b/tools/purify/chrome_tests.py
index 63f92ce..39578a9 100644
--- a/tools/purify/chrome_tests.py
+++ b/tools/purify/chrome_tests.py
@@ -281,9 +281,10 @@ class ChromeTests:
return ret
def TestUI(self):
- instrumentation_error = self.InstrumentDll()
- if instrumentation_error:
- return instrumentation_error
+ if not self._options.no_reinstrument:
+ instrumentation_error = self.InstrumentDll()
+ if instrumentation_error:
+ return instrumentation_error
return self.ScriptedTest("chrome", "chrome.exe", "ui_tests",
["ui_tests.exe",
"--single-process",
@@ -307,6 +308,8 @@ def _main(argv):
help="additional arguments to --gtest_filter")
parser.add_option("-v", "--verbose", action="store_true", default=False,
help="verbose output - enable debug log messages")
+ parser.add_option("", "--no-reinstrument", action="store_true", default=False,
+ help="Don't force a re-instrumentation for ui_tests")
options, args = parser.parse_args()
if options.verbose: