summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/chrome_tests.py
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-05 06:03:38 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-05 06:03:38 +0000
commitb69afd6f877e316184c5f8fa7283f10617e66366 (patch)
treeeba413d969720a0caca674ac9687437dfcb1cb59 /tools/valgrind/chrome_tests.py
parent3b6ec20aec909735d1f8b69c1088f256fe36c2a4 (diff)
downloadchromium_src-b69afd6f877e316184c5f8fa7283f10617e66366.zip
chromium_src-b69afd6f877e316184c5f8fa7283f10617e66366.tar.gz
chromium_src-b69afd6f877e316184c5f8fa7283f10617e66366.tar.bz2
Remove the dependency on layout_package.path utils so that we can obsolete that directory.
Review URL: http://codereview.chromium.org/669031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/chrome_tests.py')
-rwxr-xr-xtools/valgrind/chrome_tests.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index a14b5f6..af2a4a0 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -17,16 +17,6 @@ import sys
import google.logging_utils
import google.path_utils
-# Import the platform_utils up in the layout tests which have been modified to
-# work under non-Windows platforms instead of the ones that are in the
-# tools/python/google directory. (See chrome_tests.sh which sets PYTHONPATH
-# correctly.)
-#
-# 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.path_utils
-
import common
import valgrind_test
@@ -100,9 +90,8 @@ class ChromeTests:
# 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 = layout_package.path_utils.get_absolute_path(
- self._source_dir)
+ # an absolute Unix-style path
+ self._source_dir = os.path.abspath(self._source_dir).replace('\\', '/')
valgrind_test_script = os.path.join(script_dir, "valgrind_test.py")
self._command_preamble = [valgrind_test_script,
"--source_dir=%s" % (self._source_dir)]