mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 738032 - DevMgrADB shouldn't copy entire directory when checking if we can use run-as. r=gbrown
This commit is contained in:
parent
cf78758daf
commit
2dca49cd9a
@ -774,7 +774,8 @@ class DeviceManagerADB(DeviceManager):
|
||||
"is unknown" in runAsOut):
|
||||
raise DMError("run-as failed sanity check")
|
||||
|
||||
self.checkCmd(["push", os.path.abspath(sys.argv[0]), tmpDir + "/tmpfile"])
|
||||
tmpfile = tempfile.NamedTemporaryFile()
|
||||
self.checkCmd(["push", tmpfile.name, tmpDir + "/tmpfile"])
|
||||
if self.useDDCopy:
|
||||
self.checkCmd(["shell", "run-as", self.packageName, "dd", "if=" + tmpDir + "/tmpfile", "of=" + devroot + "/sanity/tmpfile"])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user