From 67ea3f3c1b14731d93618c426dd8a5d28aa314a1 Mon Sep 17 00:00:00 2001 From: Liping Zhang Date: Sat, 11 Jun 2016 13:05:14 +0800 Subject: 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 --- tests/shell/testcases/nft-f/0004rollback_set_0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/shell/testcases/nft-f/0004rollback_set_0') diff --git a/tests/shell/testcases/nft-f/0004rollback_set_0 b/tests/shell/testcases/nft-f/0004rollback_set_0 index 3521aebd..db1c84cb 100755 --- a/tests/shell/testcases/nft-f/0004rollback_set_0 +++ b/tests/shell/testcases/nft-f/0004rollback_set_0 @@ -49,7 +49,7 @@ if [ $? -eq 0 ] ; then exit 1 fi -KERNEL_RULESET="$($NFT list ruleset)" +KERNEL_RULESET="$($NFT list ruleset -nn)" if [ "$GOOD_RULESET" != "$KERNEL_RULESET" ] ; then DIFF="$(which diff)" -- cgit v1.2.3