From: Jakub Kicinski <kuba@kernel.org>
To: achender@kernel.org
Cc: Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, pabeni@redhat.com, edumazet@google.com,
horms@kernel.org, linux-rdma@vger.kernel.org,
linux-kselftest@vger.kernel.org, shuah@kernel.org
Subject: Re: [PATCH net-next v2 4/4] selftests: rds: report missing RDMA prereqs as XFAIL
Date: Mon, 1 Jun 2026 19:24:49 -0700 [thread overview]
Message-ID: <20260602022449.1634587-1-kuba@kernel.org> (raw)
In-Reply-To: <20260527023423.387792-5-achender@kernel.org>
This is an AI-generated review of your patch. The human sending this
email has considered the AI review valid, or at least plausible.
---
selftests: rds: report missing RDMA prereqs as XFAIL
This commit changes the exit code and message tag for RDMA prerequisites in
the RDS selftests to report as an expected failure instead of a skip.
> diff --git a/tools/testing/selftests/net/rds/rds_run.sh b/tools/testing/selftests/net/rds/rds_run.sh
> --- a/tools/testing/selftests/net/rds/rds_run.sh
> +++ b/tools/testing/selftests/net/rds/rds_run.sh
> @@ -123,10 +123,10 @@ check_rdma_conf_enabled() {
> probe_module "$2"
> return
> fi
> - echo "selftests: [SKIP] rdma transport requires $1 enabled"
> + echo "selftests: [XFAIL] rdma transport requires $1 enabled"
> echo "To enable, run" \
> "tools/testing/selftests/net/rds/config.sh -r and rebuild"
> - exit 4
> + exit 5
[Severity: High]
Is exit code 5 the correct value for an expected failure in the kselftest
framework?
Looking at the kselftest framework in tools/testing/selftests/kselftest.h
and ktap_helpers.sh, the expected failure code (KSFT_XFAIL) is defined as 2.
When runner.sh receives an exit code of 5, it does not match KSFT_XFAIL.
Instead, it falls through to the default case and calls ktap_test_fail,
which logs a hard test failure.
Could this actively fail the test in the continuous integration environments
rather than marking it as an expected failure?
[ ... ]
next prev parent reply other threads:[~2026-06-02 2:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 2:34 [PATCH net-next v2 0/4] selftests: rds: ROCE support follow ups Allison Henderson
2026-05-27 2:34 ` [PATCH net-next v2 1/4] selftests: rds: Rename run.sh to rds_run.sh Allison Henderson
2026-05-27 2:34 ` [PATCH net-next v2 2/4] selftests: rds: pin RDS sockets to their intended transport Allison Henderson
2026-05-27 2:34 ` [PATCH net-next v2 3/4] selftests: rds: support RDS built as loadable modules Allison Henderson
2026-06-02 2:24 ` Jakub Kicinski
2026-05-27 2:34 ` [PATCH net-next v2 4/4] selftests: rds: report missing RDMA prereqs as XFAIL Allison Henderson
2026-06-02 2:24 ` Jakub Kicinski [this message]
2026-06-02 5:04 ` Allison Henderson
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=20260602022449.1634587-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=achender@kernel.org \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--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