From 12f6f9f43ba1366f64bd7829622a11bfb8c122a4 Mon Sep 17 00:00:00 2001 From: Sachin P Bappalige Date: Sat, 27 Apr 2024 17:28:50 +0530 Subject: [PATCH] Convert vmcore file format to kdump-compress format on SLES The vmcore saved in makedumpfile flattened format bydefault on SLES. Inorder to test makedumpfile options like --split..etc, that flattened format should be converted into kdump-compress format Signed-off-by: Sachin P Bappalige --- testcases/PowerNVDump.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/testcases/PowerNVDump.py b/testcases/PowerNVDump.py index 628fa56c..d349b408 100644 --- a/testcases/PowerNVDump.py +++ b/testcases/PowerNVDump.py @@ -1130,7 +1130,7 @@ class KernelCrash_XIVE_off(PowerNVDump): def runTest(self): obj = OpTestInstallUtil.InstallUtil() - obj.update_kernel_cmdline(self.distro, remove_args="default_hugepagesz=1GB hugepagesz=1GB hugepages=80", + obj.update_kernel_cmdline(self.distro, remove_args="default_hugepagesz=1GB hugepagesz=1GB", reboot=True, reboot_cmd=True) self.cv_SYSTEM.goto_state(OpSystemState.OS) self.setup_test() @@ -1245,6 +1245,14 @@ def makedump_check(self): self.fail("vmcore is not saved") else: log.info("vmcore is saved") + + ''' + The vmcore file saved in flattened format on SLES distro. + So, convert flattened format to kdump compress format. + ''' + if self.distro == "sles": + self.c.run_command("mv vmcore vmcore.orig; makedumpfile -R vmcore