diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 10:50:52 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-31 10:50:52 +0000 |
commit | 569d127f862832145c979308ba1d2f4144d72bec (patch) | |
tree | b6da9cdb7f2f98ca65ec4fcb6ae8e74c56a31465 /chrome | |
parent | fdf8306c34091a66e3f41fbdb8a112693ec008f2 (diff) | |
download | chromium_src-569d127f862832145c979308ba1d2f4144d72bec.zip chromium_src-569d127f862832145c979308ba1d2f4144d72bec.tar.gz chromium_src-569d127f862832145c979308ba1d2f4144d72bec.tar.bz2 |
Look in out/ as well as xcodebuild/ for mac, in case the user is using the make build.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7790024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98953 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/test/pyautolib/pyauto_paths.py | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/chrome/test/pyautolib/pyauto_paths.py b/chrome/test/pyautolib/pyauto_paths.py index 5b9bb1e..8f61a20 100644 --- a/chrome/test/pyautolib/pyauto_paths.py +++ b/chrome/test/pyautolib/pyauto_paths.py @@ -22,27 +22,20 @@ def GetThirdPartyDir(): def GetBuildDirs(): """Returns list of possible build directories.""" - build_dirs = { - 'linux2': [ os.path.join('out', 'Debug'), - os.path.join('sconsbuild', 'Debug'), - os.path.join('out', 'Release'), - os.path.join('sconsbuild', 'Release')], - 'linux3': [ os.path.join('out', 'Debug'), - os.path.join('sconsbuild', 'Debug'), - os.path.join('out', 'Release'), - os.path.join('sconsbuild', 'Release')], - 'darwin': [ os.path.join('xcodebuild', 'Debug'), - os.path.join('xcodebuild', 'Release')], - 'win32': [ os.path.join('chrome', 'Debug'), - os.path.join('build', 'Debug'), - os.path.join('chrome', 'Release'), - os.path.join('build', 'Release')], - 'cygwin': [ os.path.join('chrome', 'Debug'), - os.path.join('chrome', 'Release')], - } + # List of dirs that can contain a Debug/Release build. + outer_dirs = { + 'linux2': ['out', 'sconsbuild'], + 'linux3': ['out', 'sconsbuild'], + 'darwin': ['out', 'xcodebuild'], + 'win32': ['chrome', 'build'], + 'cygwin': ['chrome'], + }.get(sys.platform, []) src_dir = GetSourceDir() - return map(lambda dir: os.path.join(src_dir, dir), - build_dirs.get(sys.platform, [])) + build_dirs = [] + for dir in outer_dirs: + build_dirs += [os.path.join(src_dir, dir, 'Debug')] + build_dirs += [os.path.join(src_dir, dir, 'Release')] + return build_dirs def GetChromeDriverExe(): |