diff mbox

[nft] tests/shell: cleanup tempfile handling in testcases/sets/cache_handling_0

Message ID 146564075890.10180.12129365273166621494.stgit@nfdev2.cica.es
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Arturo Borrero June 11, 2016, 10:25 a.m. UTC
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>
---
 tests/shell/testcases/sets/cache_handling_0 |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Pablo Neira Ayuso June 15, 2016, 12:02 p.m. UTC | #1
On Sat, Jun 11, 2016 at 12:25:59PM +0200, Arturo Borrero Gonzalez wrote:
> It uses a bogus pattern which was cleaned up already in others testscases,
> and this is a leftover.

Also applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/shell/testcases/sets/cache_handling_0 b/tests/shell/testcases/sets/cache_handling_0
index c79e013..9a73769 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