From 77c2af208b64e6b8c128efe79c05932d63d33571 Mon Sep 17 00:00:00 2001 From: "dpranke@google.com" Date: Fri, 21 Aug 2009 21:07:53 +0000 Subject: Try change 23924 again - refactor layout_package.path_utils and layout_package.platform_utils. Deltas from that change: * Don't enable 'win-xp' as the default platform * Don't assume 'webkit/Release' exists (it doesn't by default on mac and linux), and fix the output results directory path in run_webkit_tests * Update tools/valgrind/chrome_tests.py (which I didn't realize depended on the layout_package code). BUG=none R=tony@chromium.org TEST=none Review URL: http://codereview.chromium.org/174209 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24007 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/valgrind/chrome_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/valgrind/chrome_tests.py') diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py index d508e0a..af0ad29 100755 --- a/tools/valgrind/chrome_tests.py +++ b/tools/valgrind/chrome_tests.py @@ -28,7 +28,7 @@ import google.path_utils # TODO(erg): Copy/Move the relevant functions from the layout_package version # of platform_utils back up to google.platform_utils # package. http://crbug.com/6164 -import layout_package.platform_utils +import layout_package.path_utils import common import valgrind_test @@ -100,14 +100,14 @@ class ChromeTests: self._test = test script_dir = google.path_utils.ScriptDir() - utility = layout_package.platform_utils.PlatformUtility(script_dir) # Compute the top of the tree (the "source dir") from the script dir (where # this script lives). We assume that the script dir is in tools/valgrind/ # relative to the top of the tree. self._source_dir = os.path.dirname(os.path.dirname(script_dir)) # since this path is used for string matching, make sure it's always # an absolute Windows-style path - self._source_dir = utility.GetAbsolutePath(self._source_dir) + self._source_dir = layout_package.path_utils.GetAbsolutePath( + self._source_dir) valgrind_test_script = os.path.join(script_dir, "valgrind_test.py") self._command_preamble = [valgrind_test_script, "--source_dir=%s" % (self._source_dir)] -- cgit v1.1