From: Petr Mladek <pmladek@suse.com>
To: Sasha Levin <sashal@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>,
Miroslav Benes <mbenes@suse.cz>,
Joe Lawrence <joe.lawrence@redhat.com>,
Song Liu <song@kernel.org>,
Marcos Paulo de Souza <mpdesouza@suse.com>,
Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
Yafang Shao <laoar.shao@gmail.com>, Shuah Khan <shuah@kernel.org>,
live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 4/4] selftests/livepatch: run the tests with prebuilt test modules
Date: Mon, 23 Nov 2026 15:10:46 +0100 [thread overview]
Message-ID: <awRJZokKoPXdbyW3@pathway.suse.cz> (raw)
In-Reply-To: <20261110161050.2451750-5-sashal@kernel.org>
On Tue 2026-11-10 11:10:50, Sasha Levin wrote:
> The tests are skipped unless the machine running them has a kernel
> build directory, in $KDIR or /lib/modules/$(uname -r)/build. They do
> not need one when the test modules were built with the selftests,
> because the scripts load the modules from test_modules/.
>
> As a result the tests are skipped on a machine running an installed
> selftests tree without the kernel devel files, for example one
> installed with
>
> make O=/tmp/kselftest TARGETS=livepatch kselftest-install
>
> although the modules are there.
>
> Run the tests when the test modules are available, so that they can
> run without the kernel devel files. Without the modules, keep skipping
> the tests when there is no kernel build directory to build them with.
>
> Fixes: 54ee3526796f ("selftests: livepatch: Avoid running the tests if kernel-devel is missing")
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Looks good and seems to work:
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Best Regards,
Petr
next prev parent reply other threads:[~2026-11-23 14:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 16:10 [PATCH v4 0/4] selftests/livepatch: build and run the tests outside the running kernel Sasha Levin
2026-11-10 16:10 ` [PATCH v4 1/4] selftests/livepatch: skip the tests on kernels without livepatch Sasha Levin
2026-11-23 10:15 ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 2/4] selftests/livepatch: clean the test modules without a kernel build directory Sasha Levin
2026-11-10 16:35 ` sashiko-bot
2026-11-23 10:23 ` Petr Mladek
2026-11-23 15:44 ` Sasha Levin
2026-11-24 11:04 ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 3/4] selftests/livepatch: build the test modules against the kernel in O= Sasha Levin
2026-11-10 16:53 ` sashiko-bot
2026-11-23 14:08 ` Petr Mladek
2026-11-23 14:09 ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 4/4] selftests/livepatch: run the tests with prebuilt test modules Sasha Levin
2026-11-23 14:10 ` Petr Mladek [this message]
2026-11-23 14:16 ` [PATCH v4 0/4] selftests/livepatch: build and run the tests outside the running kernel Petr Mladek
2026-12-01 10:04 ` Petr Mladek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awRJZokKoPXdbyW3@pathway.suse.cz \
--to=pmladek@suse.com \
--cc=eva.kurchatova@virtuozzo.com \
--cc=joe.lawrence@redhat.com \
--cc=jpoimboe@kernel.org \
--cc=laoar.shao@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=mpdesouza@suse.com \
--cc=sashal@kernel.org \
--cc=shuah@kernel.org \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.