Bug 783011 - Change order of command line args for android xpcshell tests; r=jmaher

This commit is contained in:
Geoff Brown 2012-09-05 07:42:02 -06:00
Родитель 1bd799df56
Коммит 2ae7b16b75
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -150,13 +150,15 @@ class XPCShellRemote(xpcshell.XPCShellTests, object):
def buildXpcsCmd(self, testdir):
self.xpcsCmd = [
self.remoteJoin(self.remoteBinDir, "xpcshell"),
'-r', self.remoteJoin(self.remoteComponentsDir, 'httpd.manifest'),
'-r', self.remoteJoin(self.remoteComponentsDir, 'httpd.manifest')]
# If using an APK, --greomni must be specified before any -e arguments.
if self.options.localAPK:
self.xpcsCmd.extend(['--greomni', self.remoteAPK])
self.xpcsCmd.extend([
'-s',
'-e', 'const _HTTPD_JS_PATH = "%s";' % self.remoteJoin(self.remoteComponentsDir, 'httpd.js'),
'-e', 'const _HEAD_JS_PATH = "%s";' % self.remoteJoin(self.remoteScriptsDir, 'head.js'),
'-f', self.remoteScriptsDir+'/head.js']
if self.options.localAPK:
self.xpcsCmd.extend(['--greomni', self.remoteAPK])
'-f', self.remoteScriptsDir+'/head.js'])
if self.remoteDebugger:
# for example, "/data/local/gdbserver" "localhost:12345"