From: Dharmik Parmar <dharmikparmar2004@yahoo.com>
To: netdev@vger.kernel.org
Cc: Dharmik Parmar <dharmikparmar2004@yahoo.com>
Subject: [PATCH net] selftests: netfilter: conntrack_resize.sh: fix skip exit code
Date: Mon, 6 Jul 2026 02:12:52 +0530 [thread overview]
Message-ID: <20260705204252.630729-1-dharmikparmar2004@yahoo.com> (raw)
In-Reply-To: 20260705204252.630729-1-dharmikparmar2004.ref@yahoo.com
When conntrack sysctls are unavailable, the test prints SKIP but exits
with $KSFT_SKIP. lib.sh defines ksft_skip instead, so the kselftest
runner did not see a proper skip.
Use ksft_skip.
Fixes: d33f889fd80c ("selftests: netfilter: add conntrack stress test")
Signed-off-by: Dharmik Parmar <dharmikparmar2004@yahoo.com>
---
tools/testing/selftests/net/netfilter/conntrack_resize.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/netfilter/conntrack_resize.sh b/tools/testing/selftests/net/netfilter/conntrack_resize.sh
index 615fe3c6f405..51564092cec4 100755
--- a/tools/testing/selftests/net/netfilter/conntrack_resize.sh
+++ b/tools/testing/selftests/net/netfilter/conntrack_resize.sh
@@ -22,7 +22,7 @@ insert_count=2000
modprobe -q nf_conntrack
if ! sysctl -q net.netfilter.nf_conntrack_max >/dev/null;then
echo "SKIP: conntrack sysctls not available"
- exit $KSFT_SKIP
+ exit $ksft_skip
fi
init_net_max=$(sysctl -n net.netfilter.nf_conntrack_max) || exit 1
--
2.43.0
next parent reply other threads:[~2026-07-05 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260705204252.630729-1-dharmikparmar2004.ref@yahoo.com>
2026-07-05 20:42 ` Dharmik Parmar [this message]
2026-07-06 6:53 ` [PATCH net] selftests: netfilter: conntrack_resize.sh: fix skip exit code Florian Westphal
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=20260705204252.630729-1-dharmikparmar2004@yahoo.com \
--to=dharmikparmar2004@yahoo.com \
--cc=netdev@vger.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