Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1127457 - Fix check for zip in devicemanagerADB.py; r=armenzg
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrownmozilla committed Jan 30, 2015
1 parent ca8ff78 commit 27a6017
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,13 @@ def _isUnzipAvailable(self):
return False

def _isLocalZipAvailable(self):
def _noOutput(line):
# suppress output from zip ProcessHandler
pass
try:
self._checkCmd(["zip", "-?"])
proc = ProcessHandler(["zip", "-?"], storeOutput=False, processOutputLine=_noOutput)
proc.run()
proc.wait()
except:
return False
return True
Expand Down

0 comments on commit 27a6017

Please sign in to comment.