summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0002create_flowtable_0
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-03-19 18:02:04 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-03-20 13:06:59 +0100
commita55d79aa68266c790f3767ba240c3bdee247d511 (patch)
tree169f9dc2049080676c8fb8f6b8388a4b79ac5944 /tests/shell/testcases/flowtable/0002create_flowtable_0
parentfe6a1af86d5a4b89bd116efdab419074261efd34 (diff)
tests/shell: Fix flowtable test cases
The major problem here was that existence of network interfaces 'eth0' and 'wlan0' was assumed. Overcome this by just using 'lo' instead, which exists even in newly created netns by default. Another minor issue was false naming of 0004delete_after_add0 - the expected return code is supposed to be separated by '_' from the remaining filename. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/flowtable/0002create_flowtable_0')
-rwxr-xr-xtests/shell/testcases/flowtable/0002create_flowtable_06
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/shell/testcases/flowtable/0002create_flowtable_0 b/tests/shell/testcases/flowtable/0002create_flowtable_0
index b6941c58..4c85c3f8 100755
--- a/tests/shell/testcases/flowtable/0002create_flowtable_0
+++ b/tests/shell/testcases/flowtable/0002create_flowtable_0
@@ -2,11 +2,11 @@
set -e
$NFT add table t
-$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; }
-if $NFT create flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; } 2>/dev/null ; then
+$NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; }
+if $NFT create flowtable t f { hook ingress priority 10 \; devices = { lo }\; } 2>/dev/null ; then
echo "E: flowtable creation not failing on existing set" >&2
exit 1
fi
-$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; }
+$NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; }
exit 0