diff options
author | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-05 06:03:38 +0000 |
---|---|---|
committer | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-05 06:03:38 +0000 |
commit | b69afd6f877e316184c5f8fa7283f10617e66366 (patch) | |
tree | eba413d969720a0caca674ac9687437dfcb1cb59 /tools | |
parent | 3b6ec20aec909735d1f8b69c1088f256fe36c2a4 (diff) | |
download | chromium_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')
-rwxr-xr-x | tools/valgrind/chrome_tests.py | 15 | ||||
-rwxr-xr-x | tools/valgrind/chrome_tests.sh | 2 |
2 files changed, 3 insertions, 14 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)] diff --git a/tools/valgrind/chrome_tests.sh b/tools/valgrind/chrome_tests.sh index dd3a6b3..da56954 100755 --- a/tools/valgrind/chrome_tests.sh +++ b/tools/valgrind/chrome_tests.sh @@ -22,4 +22,4 @@ PATH="${CHROME_VALGRIND}/bin:$PATH" export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind" export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind" -PYTHONPATH=$THISDIR/../../webkit/tools/layout_tests/webkitpy/layout_tests:$THISDIR/../python "$THISDIR/chrome_tests.py" "$@" +PYTHONPATH=$THISDIR/../python "$THISDIR/chrome_tests.py" "$@" |