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/nft-f/0005rollback_map_0 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'tests/shell/testcases/nft-f/0005rollback_map_0') diff --git a/tests/shell/testcases/nft-f/0005rollback_map_0 b/tests/shell/testcases/nft-f/0005rollback_map_0 index 38018f66..21b6a637 100755 --- a/tests/shell/testcases/nft-f/0005rollback_map_0 +++ b/tests/shell/testcases/nft-f/0005rollback_map_0 @@ -3,13 +3,7 @@ # test a kernel rollback operation # fail reason: invalid map -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