Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 1834) sorted by relevance

12345678910>>...74

/openbmc/qemu/scripts/
H A Dminikconf.py154 self.dest.set_value(self.value, self)
176 self.dest.set_value(self.value, self)
383 for ch in self.src[self.line_pos:self.pos]:
582 self.tok = self.src[self.cursor]
602 self.cursor = self.src.find('\n', self.cursor)
610 elif self.tok == '&' and self.src[self.pos+1] == '&':
613 elif self.tok == '|' and self.src[self.pos+1] == '|':
645 self.cursor = self.src.find('\n', self.cursor)
646 self.val = self.src[start:self.cursor]
650 while self.src[self.cursor].isalnum() or self.src[self.cursor] == '_':
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Ddata.py152 self.assertEqual(self.d.getVar("foo", False), None)
156 self.assertEqual(self.d.getVar("foo", False), None)
293 self.assertEqual(self.d.getVar("TEST"), " bar")
317 self.assertEqual(self.d.getVar("TEST"), "")
323 self.assertEqual(self.d.getVar("TEST"), " Y")
329 self.assertEqual(self.d.getVar("TEST"), "A C ")
335 self.assertEqual(self.d.getVar("TEST"), " A B")
341 self.assertEqual(self.d.getVar("TEST"), " A ")
406 self.assertEqual(self.d.getVar("VERSION"), "2")
432 self.assertEqual(self.d.getVar("BAR"), None)
[all …]
H A Dcodeparser.py22 def setUp(self): argument
34 self.assertEqual(self.references, refs)
37 self.assertEqual(self.execs, execs)
40 self.assertEqual(self.contains, contains)
125 self.assertNotIn(name, self.references)
192 def setUp(self): argument
318 self.d.setVar("FOO", self.pydata)
327 … values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), set(), self.d…
370 self.d.setVar("FOO", self.shelldata)
374 … values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), set(), self.d…
[all …]
H A Dfetch.py573 self.d.setVar("PREMIRRORS", self.recipe_url + " " + self.mirror_url)
622 self.d.setVar("PREMIRRORS", self.recipe_url + " " + self.mirror_url)
657 self.d.setVar("PREMIRRORS", self.recipe_url + " " + self.mirror_url)
1101 self.git(['clone', realurl, self.sourcedir], cwd=self.tempdir)
1698 self.git_init(cwd=self.srcdir)
2279 self.git_init(cwd=self.srcdir)
2816 self.d.setVar('S', self.sdir)
3132 self.gitdir = os.path.join(self.tempdir, "git", self.reponame)
3138 self.mirrorfile = os.path.join(self.mirrordir, self.mirrorname)
3155 self.git("add {}".format(self.testfilename), self.gitdir)
[all …]
/openbmc/qemu/tests/avocado/
H A Ds390_topology.py73 def kernel_init(self): argument
123 self.vm.launch()
137 self.vm.launch()
153 def test_move(self): argument
164 self.vm.launch()
201 self.vm.launch()
215 self.vm.event_wait('CPU_POLARIZATION_CHANGE', self.event_timeout)
229 self.vm.launch()
275 self.vm.launch()
321 self.vm.launch()
[all …]
H A Dmem-addr-space-check.py51 self.assertRegex(self.vm.get_log(), r'phys-bits too low')
71 self.assertRegex(self.vm.get_log(), r'phys-bits too low')
90 self.assertNotRegex(self.vm.get_log(), r'phys-bits too low')
110 self.assertNotRegex(self.vm.get_log(), r'phys-bits too low')
129 self.assertNotRegex(self.vm.get_log(), r'phys-bits too low')
151 self.assertRegex(self.vm.get_log(), r'phys-bits too low')
181 self.assertRegex(self.vm.get_log(), r'phys-bits too low')
204 self.assertRegex(self.vm.get_log(), r'phys-bits too low')
223 self.assertNotRegex(self.vm.get_log(), r'phys-bits too low')
290 self.assertRegex(self.vm.get_log(), r'phys-bits too low')
[all …]
H A Dboot_linux_console.py115 self.vm.launch()
137 self.vm.launch()
169 self.vm.launch()
190 self.vm.launch()
223 self.vm.launch()
233 self.vm.wait()
275 self.vm.wait()
506 self.vm.wait()
688 self.vm.wait()
735 self.vm.wait()
[all …]
H A Dx86_cpu_model_versions.py86 self.vm.launch()
117 self.vm.launch()
256 def test_4_1(self): argument
267 self.assertFalse(self.get_cpu_prop('arch-capabilities'),
280 self.assertFalse(self.get_cpu_prop('arch-capabilities'),
294 self.assertTrue(self.get_cpu_prop('arch-capabilities'),
307 self.assertFalse(self.get_cpu_prop('arch-capabilities'),
321 self.assertFalse(self.get_cpu_prop('arch-capabilities'),
334 self.assertTrue(self.get_cpu_prop('arch-capabilities'),
348 self.assertTrue(self.get_cpu_prop('arch-capabilities'),
[all …]
H A Dmachine_aspeed.py42 self.vm.set_console()
45 self.vm.launch()
62 self.vm.set_console()
65 self.vm.launch()
101 self.vm.launch()
146 self.vm.launch()
252 vm = self.vm
303 self.vm.launch()
309 self, 'setenv bootargs ${bootargs} ' + self.EXTRA_BOOTARGS, 'ast#')
319 self.vm.launch()
[all …]
/openbmc/qemu/tests/vm/
H A Dnetbsd86 cimg = self._download_with_cache(self.link, sha512sum=self.csum)
92 self.exec_qemu_img("create", "-f", "qcow2", img_tmp, self.size)
132 self.console_send("%s\n" % self._config["root_pass"])
134 self.console_send("%s\n" % self._config["root_pass"])
136 self.console_send("%s\n" % self._config["root_pass"])
140 self.console_send("%s\n" % self._config["guest_user"])
145 self.console_send("%s\n" % self._config["guest_pass"])
147 self.console_send("%s\n" % self._config["guest_pass"])
149 self.console_send("%s\n" % self._config["guest_pass"])
182 self.console_ssh_init(prompt, self._config["guest_user"],
[all …]
H A Dopenbsd81 cimg = self._download_with_cache(self.link, sha256sum=self.csum)
87 self.exec_qemu_img("create", "-f", "qcow2", img_tmp, self.size)
108 self.console_send("%s\n" % self._config["root_pass"])
110 self.console_send("%s\n" % self._config["root_pass"])
117 self.console_send("%s\n" % self._config["guest_user"])
119 self.console_send("%s\n" % self._config["guest_user"])
121 self.console_send("%s\n" % self._config["guest_pass"])
123 self.console_send("%s\n" % self._config["guest_pass"])
170 self.console_ssh_init(prompt, self._config["guest_user"],
201 self.ssh_root_check("pkg_add %s\n" % " ".join(self.pkgs))
[all …]
/openbmc/openbmc/poky/bitbake/lib/bs4/tests/
H A Dtest_tree.py157 self.tree = self.soup("""<a>First tag.</a>
432 self.start = self.tree.b
445 self.assertEqual(None, self.tree.parent)
475 self.tree = self.soup(
483 self.start = self.tree.b
523 self.end = self.tree.find(text="Three")
589 self.tree = self.soup(markup)
596 self.start = self.tree.find(id="1")
641 self.end = self.tree.find(id="4")
1309 self.tree = self.soup(self.page)
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D11890 self.vm.cmd('eject', id=self.device_name, force=True)
100 self.vm.cmd('eject', id=self.device_name, force=True)
109 self.vm.cmd('blockdev-change-medium', id=self.device_name,
133 self.vm.cmd('blockdev-close-tray', id=self.device_name)
135 if self.has_real_tray or not self.was_empty:
147 self.vm.cmd('eject', id=self.device_name, force=True)
156 self.vm.cmd('blockdev-close-tray', id=self.device_name)
166 self.vm.cmd('blockdev-open-tray', id=self.device_name,
227 self.vm.cmd('blockdev-close-tray', id=self.device_name)
241 self.vm.cmd('blockdev-close-tray', id=self.device_name)
[all …]
H A D30070 for vm in (self.vm_a, self.vm_b):
180 self.migrate(self.src_node_name == self.dst_node_name and
192 mapping = self.mapping(self.src_node_name, self.dst_node_name,
200 mapping = self.mapping(self.dst_node_name, self.src_node_name,
431 mapping = self.mapping(self.src_node_name, self.dst_node_name,
468 mapping = self.mapping(self.dst_node_name, self.src_node_name,
483 mapping = self.mapping(self.dst_node_name, self.src_node_name,
575 self.set_mapping(self.vm_a, self.cross_mapping())
584 self.set_mapping(self.vm_b, self.cross_mapping())
672 self.set_mapping(self.vm_a, self.transform_mapping())
[all …]
H A D040315 self.vm = iotests.VM().add_drive(self.test_img)
332 self.run_commit_test(self.mid_img, self.backing_img)
359 self.run_commit_test(self.test_img, self.backing_img)
425 self.vm = iotests.VM().add_drive(self.img3)
439 self.run_commit_test(self.img1, self.img0)
747 self.pattern_files = [self.img0, self.img1, self.img2, self.img3]
823 self.assertIsNone(self.vm.node_info('cow-2'))
827 self.pattern_files[2] = self.img1
844 self.pattern_files[1] = self.img0
878 self.pattern_files[3] = self.img2
[all …]
H A D24578 self.assertFalse(self.vm.is_running())
86 self.assertEqual(found, self.total_io_cmds,
236 self.assert_qmp(self.get_node('hd1'), 'ro', False)
239 self.assert_qmp(self.get_node('hd1'), 'ro', True)
241 self.assert_qmp(self.get_node('hd1'), 'ro', False)
922 self.assertEqual(self.get_node('hd1'), None)
950 self.assertEqual(self.get_node('hd1'), None)
969 self.assertEqual(self.get_node('hd2'), None)
1079 self.assert_qmp(self.get_node('hd0'), 'ro', False)
1080 self.assertEqual(self.get_node('hd1'), None)
[all …]
H A D03035 def setUp(self): argument
50 def tearDown(self): argument
193 def setUp(self): argument
204 iotests.create_image(self.imgs[0], self.image_len)
222 self.vm.add_drive(self.imgs[-1], ','.join(opts))
328 self.assertLessEqual(9, self.num_imgs)
362 self.assertLessEqual(8, self.num_imgs)
391 top=self.imgs[2], base=self.imgs[0],
435 self.assertLessEqual(8, self.num_imgs)
465 self.assertLessEqual(8, self.num_imgs)
[all …]
H A D04168 self.vm.cmd(self.qmp_cmd, device='drive0', sync='full',
81 self.vm.cmd(self.qmp_cmd, device='drive0', sync='full',
233 result = self.vm.qmp(self.qmp_cmd, job_id='job0',
259 self.do_test_resize(None, self.qmp_target)
265 self.vm.cmd(self.qmp_cmd, job_id='job0',
275 self.do_test_target_size(self.image_len // 2)
278 self.do_test_target_size(self.image_len * 2)
917 self.vm = self.vm.add_blockdev(opts)
1130 self.vm.add_blockdev(self.vm.qmp_to_opts(blk0))
1131 self.vm.add_blockdev(self.vm.qmp_to_opts(blk1))
[all …]
/openbmc/openbmc/poky/bitbake/lib/
H A Dcodegen.py88 self.result = []
94 def write(self, x): argument
97 self.result.append('\n' * self.new_lines)
98 self.result.append(self.indent_with * self.indentation)
103 self.new_lines = max(self.new_lines, 1 + extra)
191 self.write('):')
232 self.write(':')
255 self.write(':')
262 self.write(':')
272 self.write(':')
[all …]
/openbmc/openbmc/poky/bitbake/lib/hashserv/
H A Dtests.py84 self.server = self.start_server()
101 self.addCleanup(self.temp_dir.cleanup)
103 self.server_address = self.start_test_server()
105 self.client = self.start_client(self.server_address)
124 with self.start_client(self.auth_server_address) as client, self.assertRaises(InvokeError):
178 return self.create_test_hash(self.client)
423 self.assertEqual(result['method'], self.METHOD)
1489 self.admin_client = self.start_client(
1499 self.client = self.start_client(
1504 self.client.remove({"method": self.METHOD})
[all …]
/openbmc/linux/scripts/gdb/linux/
H A Dmm.py53 self.VA_BITS_MIN = self.VA_BITS
57 self.SECTIONS_SHIFT = self.MAX_PHYSMEM_BITS - self.SECTION_SIZE_BITS
65 self.PFN_SECTION_SHIFT = self.SECTION_SIZE_BITS - self.PAGE_SHIFT
79 self.PFN_SUBSECTION_SHIFT = self.SUBSECTION_SHIFT - self.PAGE_SHIFT
88 self.PAGE_OFFSET = self._PAGE_OFFSET(self.VA_BITS)
89 self.MODULES_VADDR = self._PAGE_END(self.VA_BITS_MIN)
90 self.MODULES_END = self.MODULES_VADDR + self.MODULES_VSIZE
92 self.VMEMMAP_SHIFT = (self.PAGE_SHIFT - self.STRUCT_PAGE_MAX_SHIFT)
93self.VMEMMAP_SIZE = ((self._PAGE_END(self.VA_BITS_MIN) - self.PAGE_OFFSET) >> self.VMEMMAP_SHIFT)
95 self.VMEMMAP_END = self.VMEMMAP_START + self.VMEMMAP_SIZE
[all …]
/openbmc/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py728 self.value, self.direction, self.pattern, self.query, self.last_value, self.last_pattern = x
730self.value, self.direction, self.pattern, self.last_value, self.last_pattern = x + (self.value, se…
1098 self.find_bar = FindBar(self, self)
1120 self.find_bar = FindBar(self, self)
2133 x = self.ToPDP(self.dp.x, self.scale.x)
2134 y = self.ToPDP(self.dp.y, self.scale.y)
2475 self.value, self.direction, self.pattern, self.last_value, self.last_pattern = (None,) * 5
2521self.value, self.direction, self.pattern, self.last_value, self.last_pattern = (value, direction,p…
3226 self.find_bar = FindBar(self, self, True)
4091 self.find_bar = FindBar(self, self, True)
[all …]
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Drunqemu336 if fst not in self.fstypes + self.vmtypes + self.wictypes:
500 if arg in self.fstypes + self.vmtypes + self.wictypes:
593self.qemu_opt_script += ' %s %s %s' % (self.get('QB_MACHINE'), self.get('QB_CPU'), self.get('QB_SM…
674 self.fstypes = self.fstypes + self.wictypes
676 self.vmtypes = self.vmtypes + self.wictypes
745 if self.fstype in self.vmtypes:
797 self.bios = self.get('BIOS')
1431 if (self.gl_es == True or self.gl == True) and (self.sdl == False and self.gtk == False):
1437 …if not self.nographic and not self.sdl and not self.gtk and not self.publicvnc and not self.egl_he…
1449 if self.gl or self.gl_es or self.egl_headless:
[all …]
/openbmc/openbmc/poky/scripts/
H A Drunqemu336 if fst not in self.fstypes + self.vmtypes + self.wictypes:
500 if arg in self.fstypes + self.vmtypes + self.wictypes:
593self.qemu_opt_script += ' %s %s %s' % (self.get('QB_MACHINE'), self.get('QB_CPU'), self.get('QB_SM…
674 self.fstypes = self.fstypes + self.wictypes
676 self.vmtypes = self.vmtypes + self.wictypes
745 if self.fstype in self.vmtypes:
797 self.bios = self.get('BIOS')
1431 if (self.gl_es == True or self.gl == True) and (self.sdl == False and self.gtk == False):
1437 …if not self.nographic and not self.sdl and not self.gtk and not self.publicvnc and not self.egl_he…
1449 if self.gl or self.gl_es or self.egl_headless:
[all …]
/openbmc/qemu/python/qemu/machine/
H A Dmachine.py123 def __init__(self, argument
196 return self
229 return self
265 return self._popen is not None and self._popen.poll() is None
344 self._remove_files.append(self._monitor_address)
362 self._qemu_log_path = os.path.join(self.log_dir, self._name + ".log")
363 self._qemu_log_file = open(self._qemu_log_path, 'wb')
383 self._qmp.accept(self._qmp_timer)
422 self._remove_if_exists(self._remove_files.pop())
480 self._popen = subprocess.Popen(self._qemu_full_args,
[all …]

12345678910>>...74