From a2e10941319c264bfcce7f704dafa4a0782b9bb6 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 76f55ed3584..5cb6f2597e0 100644 --- a/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py +++ b/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py @@ -693,8 +693,13 @@ class DeviceManagerADB(DeviceManager): 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