Home
last modified time | relevance | path

Searched refs:host_info (Results 1 – 25 of 59) sorted by relevance

123

/external/autotest/server/hosts/
Dhost_info_unittest.py12 from autotest_lib.server.hosts import host_info
19 self.info = host_info.HostInfo()
23 self.assertNotEqual(host_info.HostInfo(), 42)
24 self.assertNotEqual(host_info.HostInfo(), None)
26 self.assertFalse(host_info.HostInfo() == 42)
27 self.assertFalse(host_info.HostInfo() == None)
32 self.assertEqual(host_info.HostInfo(), host_info.HostInfo())
34 self.assertFalse(host_info.HostInfo() != host_info.HostInfo())
39 info1 = host_info.HostInfo(
43 info2 = host_info.HostInfo(
[all …]
Dfile_store_unittest.py13 from autotest_lib.server.hosts import host_info
27 info = host_info.HostInfo(labels=['labels'],
37 info = host_info.HostInfo(labels=['labels'],
50 with self.assertRaises(host_info.StoreError):
66 with file_lock.lock(), self.assertRaises(host_info.StoreError):
67 store.commit(host_info.HostInfo())
80 store.commit(host_info.HostInfo())
84 with file_lock.lock(), self.assertRaises(host_info.StoreError):
93 with self.assertRaises(host_info.StoreError):
94 store.commit(host_info.HostInfo())
[all …]
Dshadowing_store_unittest.py12 from autotest_lib.server.hosts import host_info
21 info = host_info.HostInfo(labels='blah', attributes='boo')
32 info = host_info.HostInfo(labels='blah', attributes='boo')
39 init_info = host_info.HostInfo(labels='init')
43 info = host_info.HostInfo(labels='blah', attributes='boo')
50 init_info = host_info.HostInfo(labels='init')
59 init_info = host_info.HostInfo(labels='init')
69 p_info = host_info.HostInfo('primary')
76 s_info = host_info.HostInfo('shadow')
86 p_info = host_info.HostInfo('primary')
[all …]
Dfile_store.py9 from autotest_lib.server.hosts import host_info
17 class FileStore(host_info.CachingHostInfoStore):
68 return host_info.json_deserialize(fp)
71 raise host_info.StoreError(
74 raise host_info.StoreError('Failed to read backing file (%s) : %r'
76 except host_info.DeserializationError as e:
77 raise host_info.StoreError(
86 host_info.json_serialize(info, fp)
88 raise host_info.StoreError('Failed to write backing file (%s) : %r'
109 raise host_info.StoreError(e)
Dshadowing_store.py11 from autotest_lib.server.hosts import host_info
22 class ShadowingStore(host_info.CachingHostInfoStore):
60 except host_info.StoreError as e:
101 except host_info.StoreError:
116 except host_info.StoreError:
124 except host_info.StoreError:
137 except host_info.StoreError:
145 except host_info.StoreError:
Dafe_store_unittest.py17 from autotest_lib.server.hosts import host_info
54 with self.assertRaises(host_info.StoreError):
72 info = host_info.HostInfo(['label2'], {})
90 info = host_info.HostInfo(['label2'], {})
91 with self.assertRaises(host_info.StoreError):
99 info = host_info.HostInfo([], {'attrib1': 'val1'})
110 info = host_info.HostInfo([], {'attrib1': 'val1_updated'})
121 info = host_info.HostInfo([], {})
158 new_info = host_info.HostInfo(['label2'], {})
169 new_info = host_info.HostInfo(['pool:YYY'], {})
[all …]
Dafe_store.py9 from autotest_lib.server.hosts import host_info
12 class AfeStore(host_info.CachingHostInfoStore):
43 raise host_info.StoreError(e)
46 raise host_info.StoreError('No hosts founds with hostname: %s' %
54 return host_info.HostInfo(host.labels, host.attributes)
88 raise host_info.StoreError(e)
103 raise host_info.StoreError(e)
Dbase_label_unittest.py11 from autotest_lib.server.hosts import host_info
174 store = host_info.InMemoryHostInfoStore(
175 info=host_info.HostInfo(
/external/autotest/server/
Dafe_utils.py38 def get_stable_cros_image_name_v2(host_info): argument
46 if not host_info.cros_stable_version:
51 getattr(host_info, "board", None))
52 out = _format_image_name(board=host_info.board,
53 version=host_info.cros_stable_version)
58 def get_stable_firmware_version_v2(host_info): argument
67 getattr(host_info, "model", None))
68 return host_info.firmware_stable_version
71 def get_stable_faft_version_v2(host_info): argument
80 getattr(host_info, "model", None))
[all …]
Dprofilers.py177 hostnames = [host_info[0].hostname for host_info in hosts]
217 hostnames = [host_info[0].hostname for host_info in hosts]
232 hostnames = [host_info[0].hostname for host_info in hosts]
247 hostnames = [host_info[0].hostname for host_info in hosts]
Dafe_utils_unittest.py34 host_info = FakeHostInfo(
40 out = afe_utils.get_stable_cros_image_name_v2(host_info=host_info)
/external/bcc/examples/networking/distributed_bridge/
Dmain.py41 host_info = []
45 host_info.append(self._create_ns("host%d" % i, ipaddr=ipaddr,
51 p = NSPopen(host_info[i][0].nl.netns, cmd, stdin=PIPE)
54 for host in host_info: br.add_port(host[1])
62 interface = host_info[0][0].interfaces["br%d" % j]
74 interface = host_info[i][0].interfaces["br%d" % j]
/external/autotest/site_utils/deployment/prepare/
Dmain.py59 host_info = _read_store(opts.host_info_file)
64 with create_host(opts.hostname, host_info, opts.results_dir) as host:
69 is_labstation = (host_info.get().os == "labstation")
74 host_info.get())
185 def create_host(hostname, host_info, results_dir): argument
194 info = host_info.get()
218 host_info_store=host_info,
Ddut.py24 from autotest_lib.server.hosts import host_info
71 store = host_info.InMemoryHostInfoStore(info=host_info.HostInfo(
175 host_info = host.host_info_store.get()
176 if host_info.get_label_value('power') != 'battery':
235 host_info = host.host_info_store.get()
236 if host_info.os == 'labstation':
274 host_info = host.host_info_store.get()
275 if host_info.os == 'labstation':
310 host_info = host.host_info_store.get()
312 powerunit_hostname = host_info.attributes.get('powerunit_hostname')
[all …]
/external/autotest/site_utils/admin_audit/
Drpm_validator.py29 host_info = host.host_info_store.get()
30 powerunit_hostname = host_info.attributes.get('powerunit_hostname')
31 powerunit_outlet = host_info.attributes.get('powerunit_outlet')
209 host_info = host.host_info_store.get()
211 old_state = host_info.get_label_value(prefix)
216 host_info.set_version_label(prefix, new_state)
217 host.host_info_store.commit(host_info)
Dbase.py51 host_info = self._dut_host.host_info_store.get()
52 old_state = host_info.get_label_value(prefix)
53 host_info.set_version_label(prefix, state)
56 self._dut_host.host_info_store.commit(host_info)
/external/autotest/server/cros/
Dhost_lock_manager.py80 host_info = self.dutils.show_device(host)
82 if not host_info:
86 if operation == self.LOCK and host_info['lock_status']:
88 (host, host_info['locked_by'],
89 host_info['lock_status_updated']))
93 elif operation == self.UNLOCK and not host_info['lock_status']:
/external/bcc/examples/networking/tunnel_monitor/
Dmain.py31 host_info = []
35 host_info.append(self._create_ns("host%d" % i, ipaddr=ipaddr))
37 for host in host_info: br100.add_port(host[1])
40 for host in host_info:
63 host = host_info[0]
/external/llvm-project/lldb/test/API/tools/lldb-server/
DTestGdbRemoteHostInfo.py88 host_info = self.parse_host_info_response(context)
89 self.assertIsNotNone(host_info)
90 self.assertGreater(len(host_info), 0, "qHostInfo should have returned "
92 return host_info
/external/autotest/server/cros/servo/topology/
Dservo_topology.py55 def read(self, host_info): argument
59 if not host_info:
62 b64_val = host_info.get_label_value(stc.SERVO_TOPOLOGY_LABEL_PREFIX)
82 host_info = host_info_store.get()
83 prev_value = host_info.get_label_value(stc.SERVO_TOPOLOGY_LABEL_PREFIX)
88 host_info.set_version_label(stc.SERVO_TOPOLOGY_LABEL_PREFIX, data)
89 host_info_store.commit(host_info)
/external/autotest/server/cros/device_health_profile/
Ddevice_health_profile_unittest.py41 host_info = MockHostInfoStore()
44 host_info=host_info,
54 host_info = MockHostInfoStore()
57 host_info=host_info,
Ddevice_health_profile.py32 def __init__(self, hostname, host_info=None, result_dir=None): argument
42 self._device_board = host_info.board if host_info else ''
43 self._device_model = host_info.model if host_info else ''
/external/autotest/cli/
Dlabel.py84 host_info = topic_common.item_parse_info(attribute_name='hosts',
86 (options, leftover) = super(label_list, self).parse([host_info])
186 host_info = topic_common.item_parse_info(attribute_name='hosts',
190 self).parse([host_info],
/external/autotest/frontend/tko/
Drpc_interface.py283 host_info = {}
295 host_info.setdefault(hostname, {})
296 host_info[hostname].setdefault('tests', [])
297 host_info[hostname]['tests'].append(test)
298 host_info[hostname]['id'] = machine_idx
299 return rpc_utils.prepare_for_serialization(host_info)
/external/autotest/server/site_tests/tast/
Dcontrol.runtime-probe30 host_info = host.host_info_store.get()
31 yaml.dump({"autotest_host_info_labels": json.dumps(host_info.labels)},

123