tests/avocado/boot_xen.py: use class attribute
authorCleber Rosa <crosa@redhat.com>
Fri, 8 Dec 2023 19:09:11 +0000 (14:09 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 22 Jul 2024 05:41:46 +0000 (07:41 +0200)
Rather than defining a single use variable, let's just use the class
attribute directly.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231208190911.102879-11-crosa@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/avocado/boot_xen.py

index f4b63c1ef23ca58019df01de8ff368c3ce791a41..f29bc58b9e14d48b518b0af53a5af2d8b89d4729 100644 (file)
@@ -50,11 +50,10 @@ class BootXen(LinuxKernelTest):
 
         self.vm.set_console()
 
-        xen_command_line = self.XEN_COMMON_COMMAND_LINE
         self.vm.add_args('-machine', 'virtualization=on',
                          '-m', '768',
                          '-kernel', xen_path,
-                         '-append', xen_command_line,
+                         '-append', self.XEN_COMMON_COMMAND_LINE,
                          '-device',
                          'guest-loader,addr=0x47000000,kernel=%s,bootargs=console=hvc0'
                          % (kernel_path))