diff options
Diffstat (limited to 'tests/shell/testcases/flowtable/0001flowtable_0')
-rwxr-xr-x | tests/shell/testcases/flowtable/0001flowtable_0 | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/shell/testcases/flowtable/0001flowtable_0 b/tests/shell/testcases/flowtable/0001flowtable_0 index 6d08e254..95b193dc 100755 --- a/tests/shell/testcases/flowtable/0001flowtable_0 +++ b/tests/shell/testcases/flowtable/0001flowtable_0 @@ -1,14 +1,5 @@ #!/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 - - EXPECTED='table inet t { flowtable f { hook ingress priority 10 @@ -20,6 +11,5 @@ EXPECTED='table inet t { } }' -echo "$EXPECTED" > $tmpfile set -e -$NFT -f $tmpfile +$NFT -f - <<< $EXPECTED |