Bug 670016 - Only append a -bin suffix if app-bin exists. This makes it possible to test Fennec on Mac. r=ted

This commit is contained in:
Jesse Ruderman 2011-09-09 17:04:36 -07:00
Родитель 258e2e65e5
Коммит 3f2652249b
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -792,10 +792,11 @@ user_pref("camino.use_system_proxy_settings", false); // Camino-only, harmless t
def buildCommandLine(self, app, debuggerInfo, profileDir, testURL, extraArgs):
""" build the application command line """
cmd = app
if self.IS_MAC and not self.IS_CAMINO and not cmd.endswith("-bin"):
cmd = os.path.abspath(app)
if self.IS_MAC and not self.IS_CAMINO and os.path.exists(cmd + "-bin"):
# Prefer 'app-bin' in case 'app' is a shell script.
# We can remove this hack once bug 673899 etc are fixed.
cmd += "-bin"
cmd = os.path.abspath(cmd)
args = []