mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tests/functional: switch over to using self.scratch_file()
Replace any instances of os.path.join(self.workdir, ".../...") self.workdir + "/.../..." with self.scratch_file("...", "...") which is more compact and portable Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241217155953.3950506-15-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
bd96e460d3
commit
beaf88c895
45 changed files with 118 additions and 139 deletions
|
@ -28,8 +28,9 @@ class VirtexMl507Machine(QemuSystemTest):
|
|||
file_path = self.ASSET_IMAGE.fetch()
|
||||
archive_extract(file_path, self.workdir)
|
||||
self.vm.set_console()
|
||||
self.vm.add_args('-kernel', self.workdir + '/hippo/hippo.linux',
|
||||
'-dtb', self.workdir + '/hippo/virtex440-ml507.dtb',
|
||||
self.vm.add_args('-kernel', self.scratch_file('hippo', 'hippo.linux'),
|
||||
'-dtb', self.scratch_file('hippo',
|
||||
'virtex440-ml507.dtb'),
|
||||
'-m', '512')
|
||||
self.vm.launch()
|
||||
wait_for_console_pattern(self, 'QEMU advent calendar 2020',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue