mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
|
@ -10,12 +10,11 @@
|
|||
# This work is licensed under the terms of the GNU GPL, version 2 or
|
||||
# later. See the COPYING file in the top-level directory.
|
||||
|
||||
import os
|
||||
|
||||
from qemu_test import QemuSystemTest, Asset
|
||||
from qemu_test import wait_for_console_pattern
|
||||
from qemu_test.utils import archive_extract
|
||||
|
||||
|
||||
class Sun4uMachine(QemuSystemTest):
|
||||
"""Boots the Linux kernel and checks that the console is operational"""
|
||||
|
||||
|
@ -32,7 +31,7 @@ class Sun4uMachine(QemuSystemTest):
|
|||
kernel_name = 'day23/vmlinux'
|
||||
archive_extract(file_path, self.workdir, kernel_name)
|
||||
self.vm.set_console()
|
||||
self.vm.add_args('-kernel', os.path.join(self.workdir, kernel_name),
|
||||
self.vm.add_args('-kernel', self.scratch_file(kernel_name),
|
||||
'-append', 'printk.time=0')
|
||||
self.vm.launch()
|
||||
wait_for_console_pattern(self, 'Starting logging: OK')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue