Example #1
0
 def __init__(self, hostname):
     super(_RemoteDrone, self).__init__()
     self.hostname = hostname
     self._host = drone_utility.create_host(hostname)
     if not self._host.is_up():
         logging.error('Drone %s is unpingable, kicking out', hostname)
         raise DroneUnreachable
     self._autotest_install_dir = AUTOTEST_INSTALL_DIR
Example #2
0
 def __init__(self, hostname, timestamp_remote_calls=True):
     super(_RemoteDrone,
           self).__init__(timestamp_remote_calls=timestamp_remote_calls)
     self.hostname = hostname
     self._host = drone_utility.create_host(hostname)
     if not self._host.is_up():
         logging.error('Drone %s is unpingable, kicking out', hostname)
         raise DroneUnreachable
Example #3
0
 def __init__(self, hostname):
     super(_RemoteDrone, self).__init__()
     self.hostname = hostname
     self._host = drone_utility.create_host(hostname)
     if not self._host.is_up():
         logging.error('Drone %s is unpingable, kicking out', hostname)
         raise DroneUnreachable
     self._autotest_install_dir = AUTOTEST_INSTALL_DIR
Example #4
0
    def __init__(self, hostname):
        super(_RemoteDrone, self).__init__()
        self.hostname = hostname
        self._host = drone_utility.create_host(hostname)
        self._drone_utility_path = os.path.join(AUTOTEST_INSTALL_DIR,
                                                'scheduler',
                                                'drone_utility.py')

        try:
            self._host.run('mkdir -p ' + self._temporary_directory,
                           timeout=10)
        except error.AutoservError:
            pass