Bug 1237465 - Work around Android 5.1+ permission restrictions by changing pushed directory permissions to rwx, r=gbrown.

This commit is contained in:
Bob Clary 2016-01-09 15:40:17 -08:00
parent 5c134cb8f7
commit a3c334a59f
2 changed files with 5 additions and 0 deletions

View File

@ -272,6 +272,7 @@ class RemoteReftest(RefTest):
try:
self._devicemanager.pushDir(profileDir, options.remoteProfile)
self._devicemanager.chmodDir(options.remoteProfile)
except devicemanager.DMError:
print "Automation Error: Failed to copy profiledir to device"
raise
@ -283,6 +284,7 @@ class RemoteReftest(RefTest):
RefTest.copyExtraFilesToProfile(self, options, profile)
try:
self._devicemanager.pushDir(profileDir, options.remoteProfile)
self._devicemanager.chmodDir(options.remoteProfile)
except devicemanager.DMError:
print "Automation Error: Failed to copy extra files to device"
raise

View File

@ -169,6 +169,7 @@ class MochiRemote(MochitestDesktop):
if options.testingModulesDir:
try:
self._dm.pushDir(options.testingModulesDir, self.remoteModulesDir)
self._dm.chmodDir(self.remoteModulesDir)
except devicemanager.DMError:
self.log.error(
"Automation Error: Unable to copy test modules to device.")
@ -185,6 +186,7 @@ class MochiRemote(MochitestDesktop):
try:
self._dm.pushDir(options.profilePath, self.remoteProfile)
self._dm.chmodDir(self.remoteProfile)
except devicemanager.DMError:
self.log.error(
"Automation Error: Unable to copy profile to device.")
@ -205,6 +207,7 @@ class MochiRemote(MochitestDesktop):
# we really need testConfig.js (for browser chrome)
try:
self._dm.pushDir(options.profilePath, self.remoteProfile)
self._dm.chmodDir(self.remoteProfile)
except devicemanager.DMError:
self.log.error(
"Automation Error: Unable to copy profile to device.")