Patchwork tests: allow e2fsck tests to run on OS/X

login
register
mail settings
Submitter Andreas Dilger
Date June 11, 2012, 7:49 a.m.
Message ID <1339400960-26140-1-git-send-email-adilger@whamcloud.com>
Download mbox | patch
Permalink /patch/164090/
State Accepted
Headers show

Comments

Andreas Dilger - June 11, 2012, 7:49 a.m.
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>
---
 tests/test_one.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/tests/test_one.in b/tests/test_one.in
index 238b4b7..d053fd7 100644
--- a/tests/test_one.in
+++ b/tests/test_one.in
@@ -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