From 41cbc531dec89d74616fa83ebda9dcbf3913da8f Mon Sep 17 00:00:00 2001 From: "paulg@google.com" Date: Fri, 19 Dec 2008 19:35:14 +0000 Subject: 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 --- tools/purify/chrome_tests.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools') 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: -- cgit v1.1