The commit is pushed to "vz10.kselftest.net-forwarding" and will appear at
[email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.3.26.vz10
------>
commit ad86ebf6da3382bac98dcc13574a834b7dd32c47
Author: Aleksei Oladko <[email protected]>
Date: Mon Dec 22 19:48:44 2025 +0000
selftests: router_mpath_seed.sh: skip tests if tools or feats are missing
The router_mpath_seed.sh selftest assume the presence of iproute2
support for the `hw_stats` keyword in `ip nexthop` commands. These
assumptions can cause test failures.
This patch improves test robustness by skipping the test if
ip nexthop add help does not mention hw_stats
https://virtuozzo.atlassian.net/browse/VSTOR-121418
Signed-off-by: Aleksei Oladko <[email protected]>
---
tools/testing/selftests/net/forwarding/router_mpath_seed.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
b/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
index 314cb906c1eb2..d9dc5d3a10d5b 100755
--- a/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
+++ b/tools/testing/selftests/net/forwarding/router_mpath_seed.sh
@@ -322,6 +322,8 @@ test_mpath_seed_stability_ipv6()
-p 64 -d 0 -c 10 -t udp
}
+run_cmd_grep 'hw_stats' ip nexthop add help || exit $ksft_skip
+
trap cleanup EXIT
setup_prepare
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel