Bug 698113: copy libmozutils.so to device during remote xpcshell setup; r=jmaher

This commit is contained in:
Geoff Brown 2011-12-05 07:19:31 -05:00
parent 210550d488
commit 6f971ed723

View File

@ -125,6 +125,14 @@ class XPCShellRemote(xpcshell.XPCShellTests, object):
if (file.endswith(".so")):
self.device.pushFile(os.path.join(localLib, file), self.remoteBinDir)
# Additional libraries may be found in a sub-directory such as "lib/armeabi-v7a"
localArmLib = os.path.join(localLib, "lib")
if os.path.exists(localArmLib):
for root, dirs, files in os.walk(localArmLib):
for file in files:
if (file.endswith(".so")):
self.device.pushFile(os.path.join(root, file), self.remoteBinDir)
def setupTestDir(self):
xpcDir = os.path.join(self.options.objdir, "_tests/xpcshell")
self.device.pushDir(xpcDir, self.remoteScriptsDir)