From: Mike Rapoport <rppt@kernel.org>
To: "Nevzat Kutay Aydoğdu" <kutaynevzat2006@gmail.com>
Cc: pasha.tatashin@soleen.com, pratyush@kernel.org, shuah@kernel.org,
kexec@lists.infradead.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH] selftests/liveupdate: return KSFT_SKIP when all VM tests are skipped
Date: Tue, 1 Dec 2026 12:58:35 +0200 [thread overview]
Message-ID: <aw6oW5d-FCzEYPZo@kernel.org> (raw)
In-Reply-To: <20261128220130.14164-1-kutaynevzat2006@gmail.com>
Hi,
On Sun, Nov 29, 2026 at 01:01:30AM +0300, Nevzat Kutay Aydoğdu wrote:
> When all Live Update VM tests are skipped, run-vmtests.sh reports zero
> passes and zero failures but exits with status 0. Callers that rely on
> the exit status can mistake a skipped run for a successful one.
Normally kselftests return 0 even when the skipped all the tests.
> Return KSFT_SKIP (4) when all tests are skipped. Keep returning 1 if
> any test fails and 0 if at least one test passes and none fail.
>
> Fixes: 89dd1421c554 ("selftests/liveupdate: add end to end test infrastructure and scripts")
>
> Signed-off-by: Nevzat Kutay Aydoğdu <kutaynevzat2006@gmail.com>
> ---
> tools/testing/selftests/liveupdate/run-vmtests.sh | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/liveupdate/run-vmtests.sh b/tools/testing/selftests/liveupdate/run-vmtests.sh
> index d656ce58c5a7..574dee7b08ce 100755
> --- a/tools/testing/selftests/liveupdate/run-vmtests.sh
> +++ b/tools/testing/selftests/liveupdate/run-vmtests.sh
> @@ -91,7 +91,14 @@ function main() {
> echo "Logs: $output_dir"
> fi
>
> - exit $((failed != 0))
> + if (( failed > 0 )); then
> + exit 1
> + fi
> +
> + if (( passed == 0 && skipped > 0 )); then
> + exit 4
> + fi
> +
> }
>
> main "$@"
> --
> 2.53.0
>
--
Sincerely yours,
Mike.
prev parent reply other threads:[~2026-12-01 10:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 22:01 [PATCH] selftests/liveupdate: return KSFT_SKIP when all VM tests are skipped Nevzat Kutay Aydoğdu
2026-11-28 22:04 ` sashiko-bot
2026-12-01 10:58 ` Mike Rapoport [this message]
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=aw6oW5d-FCzEYPZo@kernel.org \
--to=rppt@kernel.org \
--cc=kexec@lists.infradead.org \
--cc=kutaynevzat2006@gmail.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=pasha.tatashin@soleen.com \
--cc=pratyush@kernel.org \
--cc=shuah@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox