From 1a05ba4a8ab25af174363dac0f924494d48ae409 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Sat, 11 Jun 2016 12:25:59 +0200 Subject: tests: shell: cleanup tempfile handling in testcases/sets/cache_handling_0 It uses a bogus pattern which was cleaned up already in others testscases, and this is a leftover. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/cache_handling_0 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/shell') diff --git a/tests/shell/testcases/sets/cache_handling_0 b/tests/shell/testcases/sets/cache_handling_0 index c79e0139..9a737695 100755 --- a/tests/shell/testcases/sets/cache_handling_0 +++ b/tests/shell/testcases/sets/cache_handling_0 @@ -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 -- cgit v1.2.3