]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ptp: use KSFT_SKIP exit code for skip scenarios
authorJunjie Cao <junjie.cao@intel.com>
Mon, 26 Jan 2026 06:15:31 +0000 (14:15 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 28 Jan 2026 01:57:28 +0000 (17:57 -0800)
commit166e664e702ed96b83df2a87c1ea2138a995b604
tree6caa676dfa801dd8da8ebf020ed1bff6a9bcb072
parent15e9abc270551374193e16ef13d31fd643567fb7
selftests: ptp: use KSFT_SKIP exit code for skip scenarios

The kselftest framework defines KSFT_SKIP=4 as the standard exit code
for skipped tests. However, phc.sh currently uses a mix of 'exit 0' and
'exit 1' to indicate skip conditions, which can confuse test harnesses
and CI systems.

This patch introduces ksft_skip=4 variable and unifies all skip exit
paths to use 'exit $ksft_skip', consistent with other selftests like
net/lib.sh and net/fib_nexthops.sh.

Signed-off-by: Junjie Cao <junjie.cao@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260126061532.12532-1-junjie.cao@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/ptp/phc.sh