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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 tests/shell/testcases/sets/cache_handling_0 |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

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

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



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux