Whamcloud - gitweb
tests: allow e2fsck tests to run on OS/X
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 12 Jun 2012 17:59:56 +0000 (13:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 12 Jun 2012 17:59:56 +0000 (13:59 -0400)
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>
tests/test_one.in

index 238b4b7..d053fd7 100644 (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