[Devel] [PATCH RHEL10 COMMIT] selftests: tc_flower_l2_miss.sh: skip tests if tools or feats are missing

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 23 16:43:29 MSK 2025


The commit is pushed to "vz10.kselftest.net-forwarding" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.3.26.vz10
------>
commit e1b73b41aebe10ee65ff8545fd30a9d8c9796728
Author: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
Date:   Mon Dec 22 19:48:43 2025 +0000

    selftests: tc_flower_l2_miss.sh: skip tests if tools or feats are missing
    
    The tc_flower_l2_miss.sh selftest assume the presence of iproute2
    support for the `l2_miss` keyword in `tc filter` commands. These
    assumptions can cause test failures.
    
    This patch improves test robustness by skipping the test if
    tc filter help does not mention l2 miss
    
    https://virtuozzo.atlassian.net/browse/VSTOR-121418
    
    Signed-off-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
---
 tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh b/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh
index c2420bb72c128..c28569b8948f5 100755
--- a/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh
+++ b/tools/testing/selftests/net/forwarding/tc_flower_l2_miss.sh
@@ -347,6 +347,8 @@ cleanup()
 	vrf_cleanup
 }
 
+run_cmd_grep 'l2_miss' tc filter add dev lo ingress flower help || exit $ksft_skip
+
 trap cleanup EXIT
 
 setup_prepare


More information about the Devel mailing list