From 927a672386c66a29f84f622e1d1fa2f42a45be3b Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Fri, 2 Sep 2011 09:57:57 +0000 Subject: Add support for client program options when using "-t cmdline" Also add --keep_logs flag to the chrome_tests.py (was: only --tool_flags="--keep_logs") TBR=glider Review URL: http://codereview.chromium.org/7824032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99348 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/valgrind/chrome_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/valgrind/chrome_tests.py') diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py index fff71c7..68f6b22 100755 --- a/tools/valgrind/chrome_tests.py +++ b/tools/valgrind/chrome_tests.py @@ -102,6 +102,8 @@ class ChromeTests: if self._options.valgrind_tool_flags: cmd += self._options.valgrind_tool_flags.split(" ") + if self._options.keep_logs: + cmd += ["--keep_logs"] if valgrind_test_args != None: for arg in valgrind_test_args: cmd.append(arg) @@ -466,6 +468,11 @@ def _main(_): help="specify a valgrind tool to run the tests under") parser.add_option("", "--tool_flags", dest="valgrind_tool_flags", default="", help="specify custom flags for the selected valgrind tool") + parser.add_option("", "--keep_logs", action="store_true", default=False, + help="store memory tool logs in the .logs directory " + "instead of /tmp.\nThis can be useful for tool " + "developers/maintainers.\nPlease note that the " + ".logs directory will be clobbered on tool startup.") # My machine can do about 120 layout tests/hour in release mode. # Let's do 30 minutes worth per run. # The CPU is mostly idle, so perhaps we can raise this when -- cgit v1.1