[Devel] [PATCH RHEL10 COMMIT] selftests: net: fib_nexthops.sh: do not count skipped tests as failures
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Dec 23 12:49:11 MSK 2025
The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.27.vz10
------>
commit 8e7a9867fd9505b8afd95ab75627805db1a9069b
Author: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
Date: Tue Dec 16 21:04:24 2025 +0000
selftests: net: fib_nexthops.sh: do not count skipped tests as failures
The fib_nexthops.sh kselftest maintains counters for passed and failed
tests, but skipped tests are currently included in the failure count.
As a result, the overall test is reported as failed whenever at least
one test case is skipped.
Fix the result accounting so that only actual test failures are
counted as failures.
https://virtuozzo.atlassian.net/browse/VSTOR-120995
Signed-off-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
Feature: fix selftests
---
tools/testing/selftests/net/fib_nexthops.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/net/fib_nexthops.sh b/tools/testing/selftests/net/fib_nexthops.sh
index 77c83d9508d3b..f8b2efb0882ed 100755
--- a/tools/testing/selftests/net/fib_nexthops.sh
+++ b/tools/testing/selftests/net/fib_nexthops.sh
@@ -76,11 +76,11 @@ log_test()
printf "TEST: %-60s [ OK ]\n" "${msg}"
nsuccess=$((nsuccess+1))
else
- ret=1
- nfail=$((nfail+1))
if [[ $rc -eq $ksft_skip ]]; then
printf "TEST: %-60s [SKIP]\n" "${msg}"
else
+ ret=1
+ nfail=$((nfail+1))
printf "TEST: %-60s [FAIL]\n" "${msg}"
fi
More information about the Devel
mailing list