Skip to content

tools/testing/ktest: Fixes and a new --dry-run

Ricardo B. Marlière lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20260307-ktest-fixes-0ff398d65521

Versions newest first

  1. v1 Latest9 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ktest: Avoid undef warning when WARNINGS_FILE is unsettools/testing/ktest/ktest.pl+1 -10 replies
2/9ktest: Resolve LOG_FILE in test option contexttools/testing/ktest/ktest.pl+1 -10 replies
3/9ktest: Treat undefined self-reference as emptytools/testing/ktest/ktest.pl+8 -01 reply
4/9ktest: Honor empty per-test option overridestools/testing/ktest/ktest.pl+4 -20 replies
5/9ktest: Run commands through list-form shell opentools/testing/ktest/ktest.pl+4 -10 replies
6/9ktest: Stop dropping console output during power-cycle reboottools/testing/ktest/ktest.pl+6 -50 replies
7/9ktest: Add PRE_KTEST_DIE for PRE_KTEST failurestools/testing/ktest/ktest.pl tools/testing/ktest/sample.conf+13 -12 replies
8/9ktest: Run POST_KTEST hooks on failure and cancellationtools/testing/ktest/ktest.pl+22 -50 replies
9/9ktest: Add a --dry-run modetools/testing/ktest/ktest.pl+63 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] tools/testing/ktest: Fixes and a new --dry-run

Hi Steven,

Please consider the following ktest patches.

They fix a few edge cases that I found while using ktest with a small virtme-ng-based harness [1], and the last two add small features:
PRE_KTEST_DIE and a new --dry-run

Thanks!
- Ricardo.

[1]: https://github.com/rbmarliere/k-lab

Assisted-by codex 5.3

---
Ricardo B. Marlière (9):
ktest: Avoid undef warning when WARNINGS_FILE is unset
ktest: Resolve LOG_FILE in test option context
ktest: Treat undefined self-reference as empty
ktest: Honor empty per-test option overrides
ktest: Run commands through list-form shell open
ktest: Stop dropping console output during power-cycle reboot
ktest: Add PRE_KTEST_DIE for PRE_KTEST failures
ktest: Run POST_KTEST hooks on failure and cancellation
ktest: Add a --dry-run mode

 tools/testing/ktest/ktest.pl    | 158 +++++++++++++++++++++++++++++-----------
 tools/testing/ktest/sample.conf |   6 ++
 2 files changed, 122 insertions(+), 42 deletions(-)

---
base-commit: 4ae12d8bd9a830799db335ee661d6cbc6597f838
change-id: 20260307-ktest-fixes-0ff398d65521

Best regards,

Signature · 1 line
Ricardo B. Marlière <[email protected]>