From 27a601752403019740317dc9fcbc26906dc16282 Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Fri, 30 Jan 2015 15:23:40 -0700 Subject: [PATCH] Bug 1127457 - Fix check for zip in devicemanagerADB.py; r=armenzg --- testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py b/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py index 76f55ed3584d..5cb6f2597e03 100644 --- a/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py +++ b/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py @@ -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