Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 802317 - Fix b2g_panda.py script. r=Callek
Browse files Browse the repository at this point in the history
  • Loading branch information
Armen Zambrano Gasparnian committed Dec 21, 2012
1 parent c68c7ea commit 142ea9a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/b2g_panda.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,28 @@ def run_test(self):
"""
Run the Panda tests
"""
mph = self.query_mozpool_handler()
sys.path.append(self.query_python_site_packages_path())
from mozdevice.devicemanagerSUT import DeviceManagerSUT
APP_INI_LOCATION = '/system/b2g/application.ini'
dm = None
try:
self.info("Connecting to: %s" % device)
dm = DeviceManagerSUT(device)
except:
self.info("Connecting to: %s" % self.mozpool_device)
dm = DeviceManagerSUT(self.mozpool_device)
except Exception, e:
self.error("%s" % str(e))
mph.close_request(self.request_url)
self.buildbot_status(TBPL_RETRY)
self.fatal("ERROR: Unable to properly connect to SUT Port on device.")
# No need for 300 second SUT socket timeouts here
dm.default_timeout = 30
if not dm.fileExists(APP_INI_LOCATION):
mph.close_request(self.request_url)
self.buildbot_status(TBPL_RETRY)
self.fatal("ERROR: expected file (%s) not found" % APP_INI_LOCATION)
file_contents = dm.catFile(APP_INI_LOCATION)
if file_contents is None:
mph.close_request(self.request_url)
self.buildbot_status(TBPL_RETRY)
self.fatal("ERROR: Unable to read file (%s)" % APP_INI_LOCATION)
self.info("Read of file (%s) follows" % APP_INI_LOCATION)
Expand Down

0 comments on commit 142ea9a

Please sign in to comment.