Re: [PATCH v2 1/2] selftests: ptp: use KSFT_SKIP exit code for skip scenarios

From: Simon Horman

Date: Tue Jan 27 2026 - 12:08:45 EST


On Mon, Jan 26, 2026 at 02:15:31PM +0800, Junjie Cao wrote:
> 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@xxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>