* [PATCH net-next] selftests: af_unix: don't use SKIP for expected failures
@ 2025-11-23 2:16 Jakub Kicinski
2025-11-24 19:04 ` Kuniyuki Iwashima
2025-11-25 3:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jakub Kicinski @ 2025-11-23 2:16 UTC (permalink / raw)
To: davem
Cc: netdev, edumazet, pabeni, andrew+netdev, horms, Jakub Kicinski,
kuniyu, adelodunolaoluwa, shuah, linux-kselftest
netdev CI reserves SKIP in selftests for cases which can't be executed
due to setup issues, like missing or old commands. Tests which are
expected to fail must use XFAIL.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: kuniyu@google.com
CC: adelodunolaoluwa@yahoo.com
CC: shuah@kernel.org
CC: linux-kselftest@vger.kernel.org
---
tools/testing/selftests/net/af_unix/unix_connreset.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/af_unix/unix_connreset.c b/tools/testing/selftests/net/af_unix/unix_connreset.c
index bffef2b54bfd..6eb936207b31 100644
--- a/tools/testing/selftests/net/af_unix/unix_connreset.c
+++ b/tools/testing/selftests/net/af_unix/unix_connreset.c
@@ -161,8 +161,12 @@ TEST_F(unix_sock, reset_closed_embryo)
char buf[16] = {};
ssize_t n;
- if (variant->socket_type == SOCK_DGRAM)
- SKIP(return, "This test only applies to SOCK_STREAM and SOCK_SEQPACKET");
+ if (variant->socket_type == SOCK_DGRAM) {
+ snprintf(_metadata->results->reason,
+ sizeof(_metadata->results->reason),
+ "Test only applies to SOCK_STREAM and SOCK_SEQPACKET");
+ exit(KSFT_XFAIL);
+ }
/* Close server without accept()ing */
close(self->server);
--
2.51.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] selftests: af_unix: don't use SKIP for expected failures
2025-11-23 2:16 [PATCH net-next] selftests: af_unix: don't use SKIP for expected failures Jakub Kicinski
@ 2025-11-24 19:04 ` Kuniyuki Iwashima
2025-11-25 3:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Kuniyuki Iwashima @ 2025-11-24 19:04 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms,
adelodunolaoluwa, shuah, linux-kselftest
On Sat, Nov 22, 2025 at 6:16 PM Jakub Kicinski <kuba@kernel.org> wrote:
>
> netdev CI reserves SKIP in selftests for cases which can't be executed
> due to setup issues, like missing or old commands. Tests which are
> expected to fail must use XFAIL.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Good to know that, thanks !
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
> ---
> CC: kuniyu@google.com
> CC: adelodunolaoluwa@yahoo.com
> CC: shuah@kernel.org
> CC: linux-kselftest@vger.kernel.org
> ---
> tools/testing/selftests/net/af_unix/unix_connreset.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/net/af_unix/unix_connreset.c b/tools/testing/selftests/net/af_unix/unix_connreset.c
> index bffef2b54bfd..6eb936207b31 100644
> --- a/tools/testing/selftests/net/af_unix/unix_connreset.c
> +++ b/tools/testing/selftests/net/af_unix/unix_connreset.c
> @@ -161,8 +161,12 @@ TEST_F(unix_sock, reset_closed_embryo)
> char buf[16] = {};
> ssize_t n;
>
> - if (variant->socket_type == SOCK_DGRAM)
> - SKIP(return, "This test only applies to SOCK_STREAM and SOCK_SEQPACKET");
> + if (variant->socket_type == SOCK_DGRAM) {
> + snprintf(_metadata->results->reason,
> + sizeof(_metadata->results->reason),
> + "Test only applies to SOCK_STREAM and SOCK_SEQPACKET");
> + exit(KSFT_XFAIL);
> + }
>
> /* Close server without accept()ing */
> close(self->server);
> --
> 2.51.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next] selftests: af_unix: don't use SKIP for expected failures
2025-11-23 2:16 [PATCH net-next] selftests: af_unix: don't use SKIP for expected failures Jakub Kicinski
2025-11-24 19:04 ` Kuniyuki Iwashima
@ 2025-11-25 3:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-25 3:30 UTC (permalink / raw)
To: Jakub Kicinski
Cc: davem, netdev, edumazet, pabeni, andrew+netdev, horms, kuniyu,
adelodunolaoluwa, shuah, linux-kselftest
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sat, 22 Nov 2025 18:16:01 -0800 you wrote:
> netdev CI reserves SKIP in selftests for cases which can't be executed
> due to setup issues, like missing or old commands. Tests which are
> expected to fail must use XFAIL.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> CC: kuniyu@google.com
> CC: adelodunolaoluwa@yahoo.com
> CC: shuah@kernel.org
> CC: linux-kselftest@vger.kernel.org
>
> [...]
Here is the summary with links:
- [net-next] selftests: af_unix: don't use SKIP for expected failures
https://git.kernel.org/netdev/net-next/c/e254c212cd9c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-25 3:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-23 2:16 [PATCH net-next] selftests: af_unix: don't use SKIP for expected failures Jakub Kicinski
2025-11-24 19:04 ` Kuniyuki Iwashima
2025-11-25 3:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox