summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/netns/0001nft-f_0
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2016-04-14 21:47:05 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-04-15 12:55:58 +0200
commitc30fc3d731b711847fce7910e95d1c217886cb09 (patch)
treec37564214ed93d1a33f786b22c12f519dac8fa8a /tests/shell/testcases/netns/0001nft-f_0
parentf9feca7d4029ed5af9e392cab3db93a5db0aa33f (diff)
tests/shell: delete tempfile failover in testcases
It seems both Debian/Fedora (and derivates) contains mktemp (from the coreutils package) so it makes no sense to have this failover, which looks buggy also. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/netns/0001nft-f_0')
-rwxr-xr-xtests/shell/testcases/netns/0001nft-f_08
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/shell/testcases/netns/0001nft-f_0 b/tests/shell/testcases/netns/0001nft-f_0
index 721444a6..e616363e 100755
--- a/tests/shell/testcases/netns/0001nft-f_0
+++ b/tests/shell/testcases/netns/0001nft-f_0
@@ -8,13 +8,7 @@ if [ ! -x "$IP" ] ; then
exit 1
fi
-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