path: root/tests/shell/testcases/nft-f/0005rollback_map_0
diff options
authorLiping Zhang <>2016-06-11 13:05:14 +0800
committerPablo Neira Ayuso <>2016-06-15 13:58:15 +0200
commit67ea3f3c1b14731d93618c426dd8a5d28aa314a1 (patch)
tree839cc2e6b8474c2ba98f15329510466f112cd6ab /tests/shell/testcases/nft-f/0005rollback_map_0
parent3503738f77cdbe521da1054a37f59ac2e442b4cf (diff)
tests: shell: make testcases which using tcp/udp port more rubost
In my mechain, port 12345 is mapped to italk in /etc/services: italk 12345/tcp # Italk Chat System So when we add nft rule with udp port "12345", nft list ruleset will displayed it as "italk", that cause the result is not same with expected, then testcase fail. Add "-nn" option when dump the rulesets from the kernel, make testcases which using tcp/udp port more rubost. Signed-off-by: Liping Zhang <> Acked-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell/testcases/nft-f/0005rollback_map_0')
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/nft-f/0005rollback_map_0 b/tests/shell/testcases/nft-f/0005rollback_map_0
index 21b6a637..13bb9075 100755
--- a/tests/shell/testcases/nft-f/0005rollback_map_0
+++ b/tests/shell/testcases/nft-f/0005rollback_map_0
@@ -52,7 +52,7 @@ if [ $? -eq 0 ] ; then
exit 1
-KERNEL_RULESET="$($NFT list ruleset)"
+KERNEL_RULESET="$($NFT list ruleset -nn)"
if [ "$GOOD_RULESET" != "$KERNEL_RULESET" ] ; then
DIFF="$(which diff)"