Commit 4df4380
committed
OpTestKernelDump.py: Cleanup /var/crash for both local and network dumps
Previously, cleanup of crash directories under /var/crash/ was restricted
to local dumps and root user. However, in network-based (SSH/NFS) kdump
scenarios, dump folders are also copied to /var/crash/, so they should be
cleaned up as well. The cleanup logic in the finally block is now updated
to remove crash directories for all cases when dump_server_user is root.
Additionally:
- Added setup_test() and verify_dump_file() support to the
OpTestMakedump() test case.
- The test now executes setup_test(), triggers a kernel crash, runs
makedumpcheck, and finally verifies dump files.
- verify_dump_file() also handles cleanup of the crash folder after dump
verification.
- Addressed scenarios where crash folders are created with the same names
to ensure reliable dump verification and cleanup.
Signed-off-by: Shirisha G <shirisha@linux.ibm.com>1 parent d338ec7 commit 4df4380
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
| 1330 | + | |
1330 | 1331 | | |
1331 | 1332 | | |
| 1333 | + | |
1332 | 1334 | | |
1333 | 1335 | | |
1334 | 1336 | | |
| |||
0 commit comments