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

From: Ricardo B. Marlière

Date: Sat Mar 07 2026 - 17:08:12 EST


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
Signed-off-by: Ricardo B. Marlière <rbm@xxxxxxxx>
---
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,
--
Ricardo B. Marlière <rbm@xxxxxxxx>