On Mon, Jan 27, 2020 at 04:36:29PM +0000, Liam Merwick wrote: > Refactor test_x86_64_pc() to test_x86_64_machine() so that separate > functions which specify the Avocado tag of ':avocado: tags=machine:' > as being either 'pc' or 'microvm' can be used to test booting a > compressed kernel using either machine class. > > Signed-off-by: Liam Merwick <liam.merw...@oracle.com> > --- > tests/acceptance/boot_linux_console.py | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-)
Reviewed-by: Stefano Garzarella <sgarz...@redhat.com> > > diff --git a/tests/acceptance/boot_linux_console.py > b/tests/acceptance/boot_linux_console.py > index e40b84651b0b..aa5b07b1c609 100644 > --- a/tests/acceptance/boot_linux_console.py > +++ b/tests/acceptance/boot_linux_console.py > @@ -51,10 +51,9 @@ class BootLinuxConsole(Test): > os.chdir(cwd) > return self.workdir + path > > - def test_x86_64_pc(self): > + def do_test_x86_64_machine(self): > """ > :avocado: tags=arch:x86_64 > - :avocado: tags=machine:pc > """ > kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora' > > '/linux/releases/29/Everything/x86_64/os/images/pxeboot' > @@ -70,6 +69,18 @@ class BootLinuxConsole(Test): > console_pattern = 'Kernel command line: %s' % kernel_command_line > self.wait_for_console_pattern(console_pattern) > > + def test_x86_64_pc(self): > + """ > + :avocado: tags=machine:pc > + """ > + self.do_test_x86_64_machine() > + > + def test_x86_64_microvm(self): > + """ > + :avocado: tags=machine:microvm > + """ > + self.do_test_x86_64_machine() > + > def test_mips_malta(self): > """ > :avocado: tags=arch:mips > -- > 1.8.3.1 > --