Avoid placing files with predictable names in /tmp.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
done
fi
-mkdir -p tests
+mkdir -p tests/tmp
for i in $TESTS
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