From: Andrei Borzenkov Date: Fri, 30 Jan 2015 17:31:20 +0000 (+0300) Subject: test: consistently use TMPDIR and same name pattern for temp files X-Git-Tag: 2.02-beta3~448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f153fcb5a5863d7ce190cfc531b7dff1000316a0;p=thirdparty%2Fgrub.git test: consistently use TMPDIR and same name pattern for temp files --- diff --git a/tests/test_sha512sum.in b/tests/test_sha512sum.in index 524c1d1c0..d5ef7f9ea 100644 --- a/tests/test_sha512sum.in +++ b/tests/test_sha512sum.in @@ -1,7 +1,7 @@ #! /bin/bash # create a randome file -file=`mktemp` +file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 cat >$file <$outfile1 <$outfile2 SHA1=`cat $outfile1 | tr -d '\n' | cut -f1 -d\ `