summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0044chain_destroy_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/chains/0044chain_destroy_0')
-rwxr-xr-xtests/shell/testcases/chains/0044chain_destroy_011
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/shell/testcases/chains/0044chain_destroy_0 b/tests/shell/testcases/chains/0044chain_destroy_0
index 070021cf..8384da66 100755
--- a/tests/shell/testcases/chains/0044chain_destroy_0
+++ b/tests/shell/testcases/chains/0044chain_destroy_0
@@ -1,7 +1,10 @@
-#!/bin/bash
-
-set -e
+#!/bin/sh -e
$NFT add table t
-$NFT destroy chain t nochain
+# pass for non-existent chain
+$NFT destroy chain t c
+
+# successfully delete existing chain
+$NFT add chain t c
+$NFT destroy chain t c