From: Arturo Borrero Date: Sat, 11 Jun 2016 10:25:59 +0000 (+0200) Subject: tests: shell: cleanup tempfile handling in testcases/sets/cache_handling_0 X-Git-Tag: v0.7~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a05ba4a8ab25af174363dac0f924494d48ae409;p=thirdparty%2Fnftables.git 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 --- 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