summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0008masquerade_jump_1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/chains/0008masquerade_jump_1')
-rwxr-xr-xtests/shell/testcases/chains/0008masquerade_jump_14
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/shell/testcases/chains/0008masquerade_jump_1 b/tests/shell/testcases/chains/0008masquerade_jump_1
index 7754ed03..aee1475f 100755
--- a/tests/shell/testcases/chains/0008masquerade_jump_1
+++ b/tests/shell/testcases/chains/0008masquerade_jump_1
@@ -6,6 +6,8 @@ $NFT add table t
$NFT add chain t output {type nat hook output priority 0 \; }
$NFT add chain t c1
$NFT add rule t c1 masquerade
+
# kernel should return EOPNOTSUPP
-$NFT add rule t output jump c1 2>/dev/null
+$NFT add rule t output jump c1 2>/dev/null || exit 0
echo "E: accepted masquerade in output hook" >&2
+exit 1