Skip to contentSkip to conversation

selftest: fix flower terse dump tests

PATCH Applied Vlad Buslov 2 participants 2 messages Nov 7, 2020 – Nov 10, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftest: fix flower terse dump tests

Iproute2 tc classifier terse dump has been accepted with modified syntax. Update the tests accordingly.

Fixes e7534fd42a99 ("selftests: implement flower classifier terse dump tests")
---
 .../testing/selftests/tc-testing/tc-tests/filters/tests.json  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/tc-testing/tc-tests/filters/tests.json +2 -2
index bb543bf69d69..361235ad574b 100644
@@ -100,7 +100,7 @@
         ],
         "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress flower dst_mac e4:11:22:11:4a:51 action drop",
         "expExitCode": "0",
-        "verifyCmd": "$TC filter show terse dev $DEV2 ingress",
+        "verifyCmd": "$TC -br filter show dev $DEV2 ingress",
         "matchPattern": "filter protocol ip pref 1 flower.*handle",
         "matchCount": "1",
         "teardown": [
@@ -119,7 +119,7 @@
         ],
         "cmdUnderTest": "$TC filter add dev $DEV2 protocol ip pref 1 ingress flower dst_mac e4:11:22:11:4a:51 action drop",
         "expExitCode": "0",
-        "verifyCmd": "$TC filter show terse dev $DEV2 ingress",
+        "verifyCmd": "$TC -br filter show dev $DEV2 ingress",
         "matchPattern": "  dst_mac e4:11:22:11:4a:51",
         "matchCount": "0",
         "teardown": [
Signature · 1 line
2.29.1
maintainer Applied
#1 lore raw
Quoted 5 lines · On Sat, 7 Nov 2020 13:19:28 +0200 Vlad Buslov wrote:

Iproute2 tc classifier terse dump has been accepted with modified syntax. Update the tests accordingly.

Fixes e7534fd42a99 ("selftests: implement flower classifier terse dump tests")

Applied, thanks!