summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/netns/0002loosecommands_0
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-06-11 13:05:14 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-06-15 13:58:15 +0200
commit67ea3f3c1b14731d93618c426dd8a5d28aa314a1 (patch)
tree839cc2e6b8474c2ba98f15329510466f112cd6ab /tests/shell/testcases/netns/0002loosecommands_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 <liping.zhang@spreadtrum.com> Acked-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/netns/0002loosecommands_0')
-rwxr-xr-xtests/shell/testcases/netns/0002loosecommands_02
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shell/testcases/netns/0002loosecommands_0 b/tests/shell/testcases/netns/0002loosecommands_0
index 1600d946..fbaa3865 100755
--- a/tests/shell/testcases/netns/0002loosecommands_0
+++ b/tests/shell/testcases/netns/0002loosecommands_0
@@ -53,7 +53,7 @@ RULESET="table ip t {
}
}"
-KERNEL_RULESET="$($IP netns exec $NETNS_NAME $NFT list ruleset)"
+KERNEL_RULESET="$($IP netns exec $NETNS_NAME $NFT list ruleset -nn)"
$IP netns del $NETNS_NAME
if [ "$RULESET" != "$KERNEL_RULESET" ] ; then
DIFF="$(which diff)"