Ejemplo n.º 1
0
 def on_entry(self):
     # TODO: when SUT support is in place, determine whether to use a SUT check or a
     # ping, or nothing, based on the current image as recorded in the db.
     def ping_complete(success):
         if not success:
             mozpool.lifeguard.driver.handle_event(self.machine.device_name, 'ping_failed', {})
     bmm_api.start_ping(self.machine.device_name, ping_complete)
Ejemplo n.º 2
0
    def on_entry(self):
        def ping_complete(success):
            # send the machine a power-cycle-ok event on success, and do nothing on failure (timeout)
            if success:
                mozpool.lifeguard.driver.handle_event(self.machine.device_name,
                                                      'ping_ok', {})

        bmm_api.start_ping(self.machine.device_name, ping_complete)
Ejemplo n.º 3
0
 def on_entry(self):
     def ping_complete(success):
         # send the machine a power-cycle-ok event on success, and do nothing on failure (timeout)
         if success:
             mozpool.lifeguard.driver.handle_event(self.machine.device_name, 'ping_ok', {})
     bmm_api.start_ping(self.machine.device_name, ping_complete)