Skip to content

case-lib: refactor kernel logs collecting#1353

Draft
ekurdybx wants to merge 2 commits intothesofproject:mainfrom
ekurdybx:dmesg-collection-vol-2
Draft

case-lib: refactor kernel logs collecting#1353
ekurdybx wants to merge 2 commits intothesofproject:mainfrom
ekurdybx:dmesg-collection-vol-2

Conversation

@ekurdybx
Copy link
Contributor

@ekurdybx ekurdybx commented Mar 12, 2026

Refactor kernel messages collecting:

  • save journalctl logs from the start of the test, to avoid losing them in unexpected scenarios
  • move setup_kernel_check_point function to the start_test func, instead of calling it in every test in different place
  • note: some tests setup more kernel checkpoints than one, and check logs for errors every iteration etc. In these cases they remain unchanged - the general dmesg.txt since the first checkpoint still will be available though
  • in case of kernel checkpoint not being set, we collect all the journalctl logs

Start collecting dmesg logs in the beggining of the test and run
collection in the background.

Signed-off-by: Emilia Kurdybelska <emiliax.kurdybelska@intel.com>
@ekurdybx ekurdybx changed the title Dmesg collection vol 2 case-lib: refactor journalctl logs collecting Mar 12, 2026
@ekurdybx ekurdybx changed the title case-lib: refactor journalctl logs collecting case-lib: refactor kernel logs collecting Mar 12, 2026
@ekurdybx ekurdybx force-pushed the dmesg-collection-vol-2 branch from 9350430 to 533010c Compare March 12, 2026 11:58
Signed-off-by: Emilia Kurdybelska <emiliax.kurdybelska@intel.com>
@ekurdybx ekurdybx force-pushed the dmesg-collection-vol-2 branch from 533010c to 00a3dbd Compare March 12, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant