summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@kylinos.cn>2026-10-19 08:41:03 +0800
committerJakub Kicinski <kuba@kernel.org>2026-10-20 14:00:03 -0700
commit17271848c9a79cdbee49537cb9a73e7de0906962 (patch)
treedd823b5b0b228dd9727309d88bedd66ae3cea54d /tools/lib/python
parentf6fa1d60ec3ceb7e6c26aa91eadfef34f94014e1 (diff)
selftests: net: exit with test failure status
The changed four tests can print [FAIL] subtests while still exiting with status 0. Their log_test(), aka log_test_expected() in lib.sh, helpers record a failure in ret, but the scripts never propagate ret to the exit code, so a kselftest runner treats the run as a pass. Initialize ret and exit with it at the end of each script so failed subtests are reflected in the exit status. Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions