From c30fc3d731b711847fce7910e95d1c217886cb09 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 14 Apr 2016 21:47:05 +0200 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/netns/0003many_0 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/shell/testcases/netns/0003many_0') diff --git a/tests/shell/testcases/netns/0003many_0 b/tests/shell/testcases/netns/0003many_0 index b6706ffa..ad71ae37 100755 --- a/tests/shell/testcases/netns/0003many_0 +++ b/tests/shell/testcases/netns/0003many_0 @@ -11,13 +11,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 -- cgit v1.2.3