Просмотр исходного кода

tests/avocado/boot_linux_console: Remove the s390x subtest

We've got a much more sophisticated, Fedora-based test for s390x
("test_s390x_fedora" in another file) already, so the test in
boot_linux_console.py seems to be rather a waste of precious test
cycles. Thus move the command line check and delete the s390x
test in boot_linux_console.py.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240830133841.142644-7-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Thomas Huth 11 месяцев назад
Родитель
Сommit
b5347978a9
2 измененных файлов с 2 добавлено и 20 удалено
  1. 0 20
      tests/avocado/boot_linux_console.py
  2. 2 0
      tests/avocado/machine_s390_ccw_virtio.py

+ 0 - 20
tests/avocado/boot_linux_console.py

@@ -1304,26 +1304,6 @@ def test_aarch64_raspi3_atf(self):
         self.vm.launch()
         self.vm.launch()
         self.wait_for_console_pattern('version UEFI Firmware v1.15')
         self.wait_for_console_pattern('version UEFI Firmware v1.15')
 
 
-    def test_s390x_s390_ccw_virtio(self):
-        """
-        :avocado: tags=arch:s390x
-        :avocado: tags=machine:s390-ccw-virtio
-        """
-        kernel_url = ('https://archives.fedoraproject.org/pub/archive'
-                      '/fedora-secondary/releases/29/Everything/s390x/os/images'
-                      '/kernel.img')
-        kernel_hash = 'e8e8439103ef8053418ef062644ffd46a7919313'
-        kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
-
-        self.vm.set_console()
-        kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=sclp0'
-        self.vm.add_args('-nodefaults',
-                         '-kernel', kernel_path,
-                         '-append', kernel_command_line)
-        self.vm.launch()
-        console_pattern = 'Kernel command line: %s' % kernel_command_line
-        self.wait_for_console_pattern(console_pattern)
-
     def test_alpha_clipper(self):
     def test_alpha_clipper(self):
         """
         """
         :avocado: tags=arch:alpha
         :avocado: tags=arch:alpha

+ 2 - 0
tests/avocado/machine_s390_ccw_virtio.py

@@ -200,6 +200,8 @@ def test_s390x_fedora(self):
                          '-device', 'virtio-rng-ccw,devno=fe.1.9876',
                          '-device', 'virtio-rng-ccw,devno=fe.1.9876',
                          '-device', 'virtio-gpu-ccw,devno=fe.2.5432')
                          '-device', 'virtio-gpu-ccw,devno=fe.2.5432')
         self.vm.launch()
         self.vm.launch()
+        self.wait_for_console_pattern('Kernel command line: %s'
+                                      % kernel_command_line)
         self.wait_for_console_pattern('Entering emergency mode')
         self.wait_for_console_pattern('Entering emergency mode')
 
 
         # Some tests to see whether the CLI options have been considered:
         # Some tests to see whether the CLI options have been considered: