зеркало из https://github.com/mozilla/gecko-dev.git
Bug 902645 - Use root to create android xpcshell xpcb directory; r=jmaher
This commit is contained in:
Родитель
faade68b82
Коммит
3cd3ec33b6
|
@ -294,7 +294,12 @@ class XPCShellRemote(xpcshell.XPCShellTests, object):
|
|||
def setupUtilities(self):
|
||||
if (not self.device.dirExists(self.remoteBinDir)):
|
||||
# device.mkDir may fail here where shellCheckOutput may succeed -- see bug 817235
|
||||
self.device.shellCheckOutput(["mkdir", self.remoteBinDir]);
|
||||
try:
|
||||
self.device.shellCheckOutput(["mkdir", self.remoteBinDir]);
|
||||
except devicemanager.DMError:
|
||||
# Might get a permission error; try again as root, if available
|
||||
self.device.shellCheckOutput(["mkdir", self.remoteBinDir], root=True);
|
||||
self.device.shellCheckOutput(["chmod", "777", self.remoteBinDir], root=True);
|
||||
|
||||
remotePrefDir = remoteJoin(self.remoteBinDir, "defaults/pref")
|
||||
if (self.device.dirExists(self.remoteTmpDir)):
|
||||
|
|
Загрузка…
Ссылка в новой задаче