* [PATCH net-next] selftests: net: Fix minor issues in cork_fragsize.py
@ 2026-10-01 12:42 Alice Mikityanska
2026-10-06 0:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Alice Mikityanska @ 2026-10-01 12:42 UTC (permalink / raw)
To: netdev, linux-kselftest
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Shuah Khan, Alice Mikityanska, Sashiko
From: Alice Mikityanska <alice@isovalent.com>
return None is unreachable in check_kernel_config, because the try block
always returns a True or False value, and the except block continues the
loop. The return None was supposed to be outside the for loop, to make
pylint happy by making all the flows of the function return a value
explicitly.
While at it, make the docstring of check_dmesg_clean clearer by
explaining the return values.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260901195714.673548-1-alice.kernel%40fastmail.im
Signed-off-by: Alice Mikityanska <alice@isovalent.com>
---
tools/testing/selftests/net/cork_fragsize.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/cork_fragsize.py b/tools/testing/selftests/net/cork_fragsize.py
index 7afd643d07ec..ae6be804b7a2 100755
--- a/tools/testing/selftests/net/cork_fragsize.py
+++ b/tools/testing/selftests/net/cork_fragsize.py
@@ -54,7 +54,7 @@ def check_kernel_config(option: str) -> bool | None:
return False
except OSError:
continue
- return None
+ return None
def assert_debug_kernel() -> None:
@@ -71,7 +71,8 @@ def assert_debug_kernel() -> None:
def check_dmesg_clean(func: str) -> bool:
'''
- Check if the given function produced a WARN in dmesg.
+ Check if the given function produced a WARN in dmesg. Returns True if dmesg
+ is clean, i.e. doesn't contain traces of a WARNING in the given function.
'''
with subprocess.Popen(['dmesg'], stdout=subprocess.PIPE) as dmesg:
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net-next] selftests: net: Fix minor issues in cork_fragsize.py
2026-10-01 12:42 [PATCH net-next] selftests: net: Fix minor issues in cork_fragsize.py Alice Mikityanska
@ 2026-10-06 0:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-10-06 0:20 UTC (permalink / raw)
To: Alice Mikityanska
Cc: netdev, linux-kselftest, davem, edumazet, kuba, pabeni, horms,
shuah, alice, sashiko-bot
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 1 Oct 2026 15:42:01 +0300 you wrote:
> From: Alice Mikityanska <alice@isovalent.com>
>
> return None is unreachable in check_kernel_config, because the try block
> always returns a True or False value, and the except block continues the
> loop. The return None was supposed to be outside the for loop, to make
> pylint happy by making all the flows of the function return a value
> explicitly.
>
> [...]
Here is the summary with links:
- [net-next] selftests: net: Fix minor issues in cork_fragsize.py
https://git.kernel.org/netdev/net-next/c/363cf8def362
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] 2+ messages in thread
end of thread, other threads:[~2026-10-06 0:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-01 12:42 [PATCH net-next] selftests: net: Fix minor issues in cork_fragsize.py Alice Mikityanska
2026-10-06 0:20 ` 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