From: Dmitry V. Levin Date: Sat, 20 Oct 2007 18:08:51 +0000 (+0400) Subject: blkid/test_probe.in: Fix temporary files handling X-Git-Tag: v1.41-WIP-0427~116 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3b06802bbbfe4e3dc8dc3d46be1f2c43284ca4f2;p=tools%2Fe2fsprogs.git blkid/test_probe.in: Fix temporary files handling Avoid placing files with predictable names in /tmp. Signed-off-by: Dmitry V. Levin Signed-off-by: Theodore Ts'o --- diff --git a/lib/blkid/test_probe.in b/lib/blkid/test_probe.in index 02d42bb..ce8c42f 100644 --- a/lib/blkid/test_probe.in +++ b/lib/blkid/test_probe.in @@ -8,7 +8,7 @@ if test "$TESTS"x = x ; then done fi -mkdir -p tests +mkdir -p tests/tmp for i in $TESTS do @@ -19,9 +19,9 @@ do echo "non-existent" continue fi - bunzip2 < $SRCDIR/tests/$i.img.bz2 > /tmp/test.img.$$ - ./tst_probe /tmp/test.img.$$ > tests/$i.out - /bin/rm -f /tmp/test.img.$$ tests/$i.ok tests/$i.failed + bunzip2 < $SRCDIR/tests/$i.img.bz2 > tests/tmp/test.img.$$ + ./tst_probe tests/tmp/test.img.$$ > tests/$i.out + /bin/rm -f tests/tmp/test.img.$$ tests/$i.ok tests/$i.failed cmp -s tests/$i.out $SRCDIR/tests/$i.results if [ $? = 0 ]; then echo ok