Bug 902645 - Use root to create android xpcshell xpcb directory; r=jmaher

This commit is contained in:
Geoff Brown 2013-08-15 17:06:01 -07:00
Родитель faade68b82
Коммит 3cd3ec33b6
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -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)):