HomeSort by relevance Sort by last modified time
    Searched refs:drones (Results 1 - 17 of 17) sorted by null

  /external/autotest/scheduler/
drones_unittest.py 4 """Tests for autotest_lib.scheduler.drones."""
12 from autotest_lib.scheduler import drones
22 self.god.stub_function(drones.drone_utility, 'create_host')
31 drones.drone_utility.create_host.expect_call('fakehost').and_return(
34 self.assertRaises(drones.DroneUnreachable,
35 drones._RemoteDrone, 'fakehost')
39 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
41 drones.drone_utility.create_host.expect_call('fakehost').and_return(
51 drone = drones._RemoteDrone('fakehost', timestamp_remote_calls=False)
57 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path'
    [all...]
drone_task_queue_unittest.py 18 from autotest_lib.scheduler import drones
32 drones.drone_utility.create_host.expect_call(hostname).and_return(
35 return drones._RemoteDrone(hostname, timestamp_remote_calls=False)
42 self.god.stub_function(drones.drone_utility, 'create_host')
46 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
71 drones = [drone1, drone2, drone3]
72 for drone in drones:
82 task_queue.execute(drones, wait=False)
83 self.assertTrue(set(task_queue.results.keys()) == set(drones))
97 self.assertTrue(task_queue.execute(drones, wait=True)[drone1] =
    [all...]
drone_task_queue.py 12 """A manager to run queued tasks in drones and gather results from them."""
19 """Get a results dictionary keyed on drones.
21 @return: A dictionary of return values from drones.
28 def execute(self, drones, wait=True):
31 @param drones: A list of drones with calls to execute.
32 @param wait: If True, this method will only return when all the drones
38 @return: A dictionary keyed on the drones, containing a list of return
48 for drone in drones:
thread_lib_unittest.py 18 from autotest_lib.scheduler import drones
33 drones.drone_utility.create_host.expect_call(hostname).and_return(
36 return drones._RemoteDrone(hostname, timestamp_remote_calls=False)
43 self.god.stub_function(drones.drone_utility, 'create_host')
47 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
58 # that the drones host.run method is invoked for the call, and the
100 # mock drones and confirm that:
160 # Insert results for different drones and check that they're returned
195 drones = [drone1, drone2, drone3]
196 for drone in drones
    [all...]
drone_manager_unittest.py 11 from autotest_lib.scheduler import drone_manager, drone_utility, drones
18 class MockDrone(drones._AbstractDrone):
81 self.god.stub_with(drones, 'AUTOTEST_INSTALL_DIR',
87 self.god.stub_function(drones, 'get_drone')
93 # set up some dummy drones
256 (drones.get_drone.expect_call(self.mock_drone.name)
261 drones.get_drone.expect_call(results_hostname).and_return(results_drone)
366 _DRONE_CLASS = drones._RemoteDrone
377 self.god.stub_function(drones.drone_utility, 'create_host')
378 drones.drone_utility.create_host.expect_call(drone_hostname).and_return
    [all...]
thread_lib.py 9 and syncing threads across remote and localhost drones asynchronously. It also
14 2. execute: Takes a list of drones and invokes a worker thread per drone.
15 This method assumes that all drones have a queue of pending calls
20 on the drones.
107 """Get a results dictionary keyed on the drones.
113 @return: A dictionary of return values from the drones.
127 def execute(self, drones, wait=True):
130 @param drones: A list of drones with calls to execute.
131 @param wait: If True, this method will only return when all the drones
    [all...]
drone_manager.py 11 from autotest_lib.scheduler import drones
21 # results on drones will be placed under the drone_installation_directory in a
141 """Wrapper to compare drones based on used_capacity().
143 These objects can be used to keep a heap of drones by capacity.
156 This class acts as an interface from the scheduler to drones, whether it be
157 only a single "drone" for localhost or multiple remote drones.
176 # holds the list of all processes running on all drones
193 # A threaded task queue used to refresh drones asynchronously.
209 # all drones failed to initialize
210 raise DroneManagerError('No valid drones found'
    [all...]
monitor_db_unittest.py 388 self.mock_config.set_config_value('SCHEDULER', 'drones', 'localhost')
901 drones = []
903 drones.append(models.Drone.objects.create(hostname=str(x)))
906 drone_set_1.drones.add(*drones[0:2])
908 drone_set_2.drones.add(*drones[2:4])
    [all...]
postjob_task.py 15 from autotest_lib.scheduler import agent_task, drones, drone_manager
26 _parser_path = os.path.join(drones.AUTOTEST_INSTALL_DIR, 'tko', 'parse')
  /external/autotest/server/
system_utils.py 21 """Get a list of drones from server database or global config.
26 drones = global_config.global_config.get_config_value(
27 scheduler_config.CONFIG_SECTION, 'drones', default='localhost')
28 return [hostname.strip() for hostname in drones.split(',')]
50 # A cache of unrestricted drones.
78 """Get a list of cached unrestricted drones.
  /external/autotest/tko/
retrieve_logs.cgi 114 # Drones do not run this script when receiving '/results/...' request.
115 # Only master should check drones and shards for the requested log.
116 # Also restricted users do not have access to drones or shards,
120 drones = system_utils.get_drones()
124 tpool_args = _get_tpool_args(drones, job_path, False, host_set)
  /external/autotest/site_utils/
server_manager_utils.py 293 """Get a list of drones in status primary.
295 @return: A list of drones in status primary.
setup_dev_autotest.sh 186 drones: localhost
  /external/autotest/frontend/afe/
admin.py 303 drone_ids_used.update(drone_set.drones.values_list('id', flat=True))
306 self.fields['drones'].widget.choices = [(drone.id, drone.hostname)
311 filter_horizontal = ('drones',)
models.py 245 raise Exception('Only superusers may edit drones')
251 raise Exception('Only superusers may delete drones')
265 A set of scheduler drones
267 These will be used by the scheduler to decide what drones a job is allowed
271 drones: the drones that are part of the set
279 drones = dbmodels.ManyToManyField(Drone, db_table='afe_drone_sets_drones') variable in class:DroneSet
348 Gets the hostnames of all drones in this drone set
350 return set(self.drones.all().values_list('hostname', flat=True))
    [all...]
  /prebuilts/go/darwin-x86/src/cmd/link/
link_test.go 26 Jarndyce and Jarndyce drones on. This scarecrow of a suit has, over the course of time, become so complicated, that no man alive knows what it means. The parties to it understand it least; but it has been observed that no two Chancery lawyers can talk about it for five minutes, without coming to a total disagreement as to all the premises. Innumerable children have been born into the cause; innumerable young people have married into it; innumerable old people have died out of it. Scores of persons have deliriously found themselves made parties in Jarndyce and Jarndyce, without knowing how or why; whole families have inherited legendary hatreds with the suit. The little plaintiff or defendant, who was promised a new rocking-horse when Jarndyce and Jarndyce should be settled, has grown up, possessed himself of a real horse, and trotted away into the other world. Fair wards of court have faded into mothers and grandmothers; a long procession of Chancellors has come in and gone out; the legion of bills in the suit have been transformed into mere bills of mortality; there are not three Jarndyces left upon the earth perhaps, since old Tom Jarndyce in despair blew his brains out at a coffee-house in Chancery Lane; but Jarndyce and Jarndyce still drags its dreary length before the Court, perennially hopeless.`
  /prebuilts/go/linux-x86/src/cmd/link/
link_test.go 26 Jarndyce and Jarndyce drones on. This scarecrow of a suit has, over the course of time, become so complicated, that no man alive knows what it means. The parties to it understand it least; but it has been observed that no two Chancery lawyers can talk about it for five minutes, without coming to a total disagreement as to all the premises. Innumerable children have been born into the cause; innumerable young people have married into it; innumerable old people have died out of it. Scores of persons have deliriously found themselves made parties in Jarndyce and Jarndyce, without knowing how or why; whole families have inherited legendary hatreds with the suit. The little plaintiff or defendant, who was promised a new rocking-horse when Jarndyce and Jarndyce should be settled, has grown up, possessed himself of a real horse, and trotted away into the other world. Fair wards of court have faded into mothers and grandmothers; a long procession of Chancellors has come in and gone out; the legion of bills in the suit have been transformed into mere bills of mortality; there are not three Jarndyces left upon the earth perhaps, since old Tom Jarndyce in despair blew his brains out at a coffee-house in Chancery Lane; but Jarndyce and Jarndyce still drags its dreary length before the Court, perennially hopeless.`

Completed in 206 milliseconds