[Devel] [PATCH vz10] selftests: livepatch: do not require a kernel build tree to run

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Mon Aug 24 10:54:58 MSK 2026


On Fri, 21 Aug 2026 18:02:51 +0300, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> setup_config() calls has_kdir(), which skips every livepatch test when
> /lib/modules/$(uname -r)/build is missing.  The tests do not compile
> anything though, they insmod the pre-built modules from test_modules/,
> so the check tests a proxy rather than the thing it cares about.
> 
> That proxy holds only for a source tree or a machine with kernel-devel
> installed.  A packaged testsuite ships the modules pre-built and runs on
> machines with no kernel build tree at all, and there every single test
> reports "ok ... # SKIP".  A harness that looks for "not ok" then reports
> the suite as passed, so the whole suite silently tests nothing.
> 
> [...]

Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

-- 
Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>


More information about the Devel mailing list