tests: allow e2fsck tests to run on OS/X

The "mktemp" program requires a template on OS/X.  Allow the test
TMPFILE to be created in the local /tmp directory for both OS/X
and Linux.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Andreas Dilger 2012-06-12 13:59:56 -04:00 committed by Theodore Ts'o
parent e130a16e83
commit ff07d436fc

View File

@ -28,7 +28,7 @@ fi
. $TEST_CONFIG
TMPFILE=$(mktemp)
TMPFILE=$(mktemp -t e2fsprogs-tmp.XXXXXX)
test_name=`echo $test_dir | sed -e 's;.*/;;'`
if [ -f $test_dir ] ; then