diff options
Diffstat (limited to 'tests/shell/testcases/sets/0008create_verdict_map_0')
-rwxr-xr-x | tests/shell/testcases/sets/0008create_verdict_map_0 | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/shell/testcases/sets/0008create_verdict_map_0 b/tests/shell/testcases/sets/0008create_verdict_map_0 index 8ebb4509..1188e977 100755 --- a/tests/shell/testcases/sets/0008create_verdict_map_0 +++ b/tests/shell/testcases/sets/0008create_verdict_map_0 @@ -1,14 +1,6 @@ #!/bin/bash -tmpfile=$(mktemp) -if [ ! -w $tmpfile ] ; then - echo "Failed to create tmp file" >&2 - exit 0 -fi - -trap "rm -rf $tmpfile" EXIT # cleanup if aborted - -echo " +RULESET=" table ip t { map sourcemap { type ipv4_addr : verdict; @@ -19,7 +11,7 @@ table ip t { } add chain t c add element t sourcemap { 100.123.10.2 : jump c } -" > $tmpfile +" set -e -$NFT -f $tmpfile +$NFT -f - <<< $RULESET |