diff options
author | 2024-03-26 17:54:37 +0100 | |
---|---|---|
committer | 2024-03-28 18:03:43 -0700 | |
commit | a923af1ceee744c187d1c08a0d7dc9e8ab7ca482 (patch) | |
tree | b851b70aadf5f433632f16edf4119cd48cb6bb80 /tools/testing/selftests/timens | |
parent | selftests: forwarding: Have RET track kselftest framework constants (diff) | |
download | linux-a923af1ceee744c187d1c08a0d7dc9e8ab7ca482.tar.gz linux-a923af1ceee744c187d1c08a0d7dc9e8ab7ca482.tar.bz2 linux-a923af1ceee744c187d1c08a0d7dc9e8ab7ca482.zip |
selftests: forwarding: Convert log_test() to recognize RET values
In a previous patch, the interpretation of RET value was changed to mean
the kselftest framework constant with the test outcome: $ksft_pass,
$ksft_xfail, etc.
Update log_test() to recognize the various possible RET values.
Then have EXIT_STATUS track the RET value of the current test. This differs
subtly from the way RET tracks the value: while for RET we want to
recognize XFAIL as a separate status, for purposes of exit code, we want to
to conflate XFAIL and PASS, because they both communicate non-failure. Thus
add a new helper, ksft_exit_status_merge().
With this log_test_skip() and log_test_xfail() can be reexpressed as thin
wrappers around log_test.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/e5f807cb5476ab795fd14ac74da53a731a9fc432.1711464583.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/timens')
0 files changed, 0 insertions, 0 deletions