summaryrefslogtreecommitdiffstats
path: root/tools/valgrind
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 23:01:50 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 23:01:50 +0000
commit3886862db53db298a568e0878f97f66f2f908f6d (patch)
tree9fd6975efeb407e88428aa4df938410914f8d954 /tools/valgrind
parent0ac2cb38f84daea2c853413dbb024e6f153339b7 (diff)
downloadchromium_src-3886862db53db298a568e0878f97f66f2f908f6d.zip
chromium_src-3886862db53db298a568e0878f97f66f2f908f6d.tar.gz
chromium_src-3886862db53db298a568e0878f97f66f2f908f6d.tar.bz2
Fix chrome_tests.sh without -b BUILD_DIR on the Mac
Review URL: http://codereview.chromium.org/100060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind')
-rwxr-xr-xtools/valgrind/chrome_tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index f0e4e3f..de1dda4 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -94,7 +94,11 @@ class ChromeTests:
self._data_dirs.append(os.path.join(module_dir, "data", "valgrind"))
if not self._options.build_dir:
- dir_chrome = os.path.join(self._source_dir, "sconsbuild", "Debug")
+ builddir = {
+ 'darwin': 'xcodebuild',
+ 'linux2': 'sconsbuild'
+ }[sys.platform]
+ dir_chrome = os.path.join(self._source_dir, builddir, "Debug")
dir_module = os.path.join(module_dir, "Debug")
if exe:
exe_chrome = os.path.join(dir_chrome, exe)