зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1359988 - Remove retrieve_b2g_device(); r=mshal
There appear to be no in-tree users of this function and it references "b2g." I'm pretty sure it is dead code. MozReview-Commit-ID: EHHRQ2iqQoP --HG-- extra : rebase_source : ec136063dc5e4243232fce5289a8f47bd925b481
This commit is contained in:
Родитель
7fc879b5fc
Коммит
dacde5024f
|
@ -53,27 +53,6 @@ class MozpoolMixin(object):
|
|||
"package is installed! (VirtualenvMixin?): \n%s" % str(e))
|
||||
return self.mozpool_handler
|
||||
|
||||
def retrieve_b2g_device(self, b2gbase):
|
||||
mph = self.query_mozpool_handler(self.mozpool_device)
|
||||
for retry in self._retry_sleep(
|
||||
error_message="INFRA-ERROR: Could not request device '%s'" % self.mozpool_device,
|
||||
tbpl_status=TBPL_EXCEPTION):
|
||||
try:
|
||||
image = 'b2g'
|
||||
duration = 4 * 60 * 60 # request valid for 14400 seconds == 4 hours
|
||||
response = mph.request_device(self.mozpool_device, image, assignee=self.mozpool_assignee, \
|
||||
b2gbase=b2gbase, pxe_config=None, duration=duration)
|
||||
break
|
||||
except self.MozpoolConflictException:
|
||||
self.warning("Device unavailable. Retry#%i.." % retry)
|
||||
except self.MozpoolException, e:
|
||||
self.buildbot_status(TBPL_RETRY)
|
||||
self.fatal("We could not request the device: %s" % str(e))
|
||||
|
||||
self.request_url = response['request']['url']
|
||||
self.info("Got request, url=%s" % self.request_url)
|
||||
self._wait_for_request_ready()
|
||||
|
||||
def retrieve_android_device(self, b2gbase):
|
||||
mph = self.query_mozpool_handler(self.mozpool_device)
|
||||
for retry in self._retry_sleep(
|
||||
|
|
Загрузка…
Ссылка в новой задаче