selftests: kselftest_harness: use exit code to store skip
authorJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 00:59:13 +0000 (16:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 10:30:28 +0000 (10:30 +0000)
commit796a344fa4315f9c1f2258de14c1d20cbbef79a8
tree479e2a918de25a2db48de821671dee22ab50c772
parent69fe8ec4f673b5b35a34718dc39a5131bfc55e36
selftests: kselftest_harness: use exit code to store skip

We always use skip in combination with exit_code being 0
(KSFT_PASS). This are basic KSFT / KTAP semantics.
Store the right KSFT_* code in exit_code directly.

This makes it easier to support tests reporting other
extended KSFT_* codes like XFAIL / XPASS.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/kselftest_harness.h