1#!/usr/bin/env python3 2# 3# Replay test that boots a Linux kernel on an s390x machine 4# and checks the console 5# 6# SPDX-License-Identifier: GPL-2.0-or-later 7 8from qemu_test import Asset 9from replay_kernel import ReplayKernelBase 10 11 12class S390xReplay(ReplayKernelBase): 13 14 ASSET_KERNEL = Asset( 15 ('https://archives.fedoraproject.org/pub/archive/fedora-secondary/' 16 'releases/29/Everything/s390x/os/images/kernel.img'), 17 'dace03b8ae0c9f670ebb9b8d6ce5eb24b62987f346de8f1300a439bb00bb99e7') 18 19 def test_s390_ccw_virtio(self): 20 self.set_machine('s390-ccw-virtio') 21 kernel_path = self.ASSET_KERNEL.fetch() 22 kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=sclp0' 23 console_pattern = 'Kernel command line: %s' % kernel_command_line 24 self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=9) 25 26 27if __name__ == '__main__': 28 ReplayKernelBase.main() 29