Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: lib: Define more kselftest exit codes

The following patches will operate with more exit codes besides
ksft_skip. Add them here.

Additionally, move a duplicated skip exit code definition from
forwarding/tc_tunnel_key.sh. Keep a similar duplicate in
forwarding/devlink_lib.sh, because even though lib.sh will have
been sourced in all cases where devlink_lib is, the inclusion is not
visible in the file itself, and relying on it would be confusing.

Cc: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/545a03046c7aca0628a51a389a9b81949ab288ce.1711464583.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Petr Machata and committed by
Jakub Kicinski
51ccf267 677f3949

+5 -3
-2
tools/testing/selftests/net/forwarding/tc_tunnel_key.sh
··· 1 1 #!/bin/bash 2 2 # SPDX-License-Identifier: GPL-2.0 3 - # Kselftest framework requirement - SKIP code is 4. 4 - ksft_skip=4 5 3 6 4 ALL_TESTS="tunnel_key_nofrag_test" 7 5
+5 -1
tools/testing/selftests/net/lib.sh
··· 8 8 9 9 BUSYWAIT_TIMEOUT=$((WAIT_TIMEOUT * 1000)) # ms 10 10 11 - # Kselftest framework requirement - SKIP code is 4. 11 + # Kselftest framework constants. 12 + ksft_pass=0 13 + ksft_fail=1 14 + ksft_xfail=2 12 15 ksft_skip=4 16 + 13 17 # namespace list created by setup_ns 14 18 NS_LIST="" 15 19