summaryrefslogtreecommitdiff
path: root/tests/t_mmp_1on
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2014-06-09 10:34:17 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-07-04 16:39:49 -0400
commit358c94ab3375be1a32851437c69b5842a7aea8a4 (patch)
tree7e29823156ba40f29389d5467ee405c028035cd5 /tests/t_mmp_1on
parent9e9e7b4a027d3ce247a01e6151f7d1536b8b188f (diff)
downloade2fsprogs-358c94ab3375be1a32851437c69b5842a7aea8a4.tar.gz
tests: fix left-over e2fsprogs-tmp files not getting clean up
In addition, incorporate the test name into the e2fsprogs-tmp to make it easier to debug left-over temp files in the future. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests/t_mmp_1on')
-rw-r--r--tests/t_mmp_1on/script5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/t_mmp_1on/script b/tests/t_mmp_1on/script
index 8fc8158f..cfed2ca8 100644
--- a/tests/t_mmp_1on/script
+++ b/tests/t_mmp_1on/script
@@ -1,7 +1,8 @@
FSCK_OPT=-yf
-TMPFILE=$test_name.tmp
-> $TMPFILE
+# use current directory instead of /tmp becase tmpfs doesn't support DIO
+rm -f $TMPFILE
+TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX)
stat -f $TMPFILE | grep -q "Type: tmpfs"
if [ $? = 0 ] ; then