Skip to content

Commit 0efea63

Browse files
Merge pull request #926 from shirishaganta1/cleanup-crash
OpTestKernelDump.py: Cleanup /var/crash for both local and network dumps
2 parents d338ec7 + 4df4380 commit 0efea63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testcases/OpTestKernelDump.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def verify_dump_file(self, boot_type=BootType.NORMAL, dump_place="local"):
308308
self.c.run_command("ls /var/crash/%s/opalcore*" %
309309
self.crash_content[0])
310310
finally:
311-
if dump_place == "local" and self.dump_server_user == 'root':
311+
if self.dump_server_user == 'root':
312312
log.info("Cleaning up crash directory /var/crash/%s" % self.crash_content[0])
313313
self.c.run_command("rm -rf /var/crash/%s; sync" % self.crash_content[0])
314314

@@ -1327,8 +1327,10 @@ def runTest(self):
13271327
obj = OpTestInstallUtil.InstallUtil()
13281328
obj.update_kernel_cmdline(self.distro, remove_args="disable_radix",
13291329
reboot=True, reboot_cmd=True)
1330+
self.setup_test()
13301331
self.kernel_crash()
13311332
self.makedump_check()
1333+
self.verify_dump_file(boot_type)
13321334

13331335

13341336
class KernelCrash_KdumpPMEM(OptestKernelDump):

0 commit comments

Comments
 (0)