]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: cleanup tempfile handling in testcases/sets/cache_handling_0
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Sat, 11 Jun 2016 10:25:59 +0000 (12:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Jun 2016 12:01:58 +0000 (14:01 +0200)
It uses a bogus pattern which was cleaned up already in others testscases,
and this is a leftover.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/sets/cache_handling_0

index c79e01390ea45037ca8ada179071df87492e89e1..9a7376957a9ff5438fcbf2ab982396d228f48ea5 100755 (executable)
@@ -1,12 +1,6 @@
 #!/bin/bash
 
-MKTEMP=$(which mktemp)
-if [ -x $MKTEMP ] ; then
-       tmpfile=$(${MKTEMP})
-else
-       tmpfile=$(/tmp/${RANDOM})
-fi
-
+tmpfile=$(mktemp)
 if [ ! -w $tmpfile ] ; then
        echo "Failed to create tmp file" >&2
        exit 0