Skip to content

case-lib: refactor kernel logs collecting#1353

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

case-lib: refactor kernel logs collecting#1353
ekurdybx wants to merge 1 commit 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. These setup_kernel_check_point calls 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
  • additional: fix shellcheck issues

@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 13 times, most recently from fae446c to 8a6f5f4 Compare March 16, 2026 15:45
Start collecting kernel logs in the beggining of the test and run
collection in the background.

Signed-off-by: Emilia Kurdybelska <emiliax.kurdybelska@intel.com>
@ekurdybx ekurdybx force-pushed the dmesg-collection-vol-2 branch from 8a6f5f4 to 5e67990 Compare March 16, 2026 15:55
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