[PATCH v2 0/4] kconfig: tests: Minor fixes and cleanups for warn_changed_input

From: Nicolas Schier

Date: Tue Sep 29 2026 - 04:08:06 EST


This patch-set contains two minor fixes and some related cleanup for the
warn_changed_input test:

* The kconfig test 'warn_changed_input' fails if the environment
variable KCONFIG_WARN_CHANGED_INPUT is set non-empty. The first
patch resets all environment variables with names starting with
KCONFIG_ by default for all tests to make the kconfig tests more
stable.

* The kconfig test framework provides 'olddefconfig' and
'savedefconfig' wrappers, which fail short when it comes to real
usage. The 'warn_changed_input' worked-around by calling the
framework-internal '_run_conf' function. The remaining three
patches extend 'olddefconfig' and 'savedefconfig' wrappers and
simplify 'warn_changed_input' appropriately.

Signed-off-by: Nicolas Schier <n.schier@xxxxxxxxx>
---
Changes in v2:
* Reset all KCONFIG_* env variables, not just
KCONFIG_WARN_CHANGED_INPUT (Julian, Nathan)
* Link to v1: https://patch.msgid.link/20260917-kconfig-tests-minor-updates-v1-0-286e5c985244@xxxxxxxxx

To: Nathan Chancellor <nathan@xxxxxxxxxx>
To: Nicolas Schier <nsc@xxxxxxxxxx>
To: Julian Braha <julianbraha@xxxxxxxxx>
To: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
To: Ulf Magnusson <ulfalizer@xxxxxxxxx>
To: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
Cc: linux-kbuild@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
Nicolas Schier (4):
kconfig: tests: Reset all KCONFIG_* env variables by default
kconfig: tests: Provide defconfig outfile for savedefconfig
kconfig: tests: warn_changed_input: Simplify by reusing the extra env
kconfig: tests: {old,save}defconfig: Forward dynamic keyword arguments

scripts/kconfig/tests/conftest.py | 21 +++++++++++++--------
.../kconfig/tests/warn_changed_input/__init__.py | 21 ++++++++-------------
2 files changed, 21 insertions(+), 21 deletions(-)
---
base-commit: e5e04726cdd043e309677071ab1b65a4b18f422b
change-id: 20260917-kconfig-tests-minor-updates-c0871950c6fa

Best regards,
--
Nicolas