tests/avocado: improve flaky ppc/pnv boot_linux_console.py test
authorNicholas Piggin <npiggin@gmail.com>
Wed, 24 Jan 2024 05:49:10 +0000 (15:49 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Fri, 23 Feb 2024 13:16:34 +0000 (23:16 +1000)
The expected MTD partition detection output does not always appear on
the console, despite the test reaching the boot loader and the string
appearing in dmesg. Possibly due to an init script that quietens the
console output. Using an earlier log message improves reliability.

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
tests/avocado/boot_linux_console.py

index 3f0180e1f8e1d4450debb70694664d6deb1f1356..af104fff1cc175af519438b7e918fda665a8c20a 100644 (file)
@@ -1368,7 +1368,8 @@ class BootLinuxConsole(LinuxKernelTest):
         self.wait_for_console_pattern("CPU: " + proc + " generation processor")
         self.wait_for_console_pattern("zImage starting: loaded")
         self.wait_for_console_pattern("Run /init as init process")
-        self.wait_for_console_pattern("Creating 1 MTD partitions")
+        # Device detection output driven by udev probing is sometimes cut off
+        # from console output, suspect S14silence-console init script.
 
     def test_ppc_powernv8(self):
         """