fstests: remove tmp files properly

Some tests and common helpers don't properly clean up tmp files and
leave them behind in /tmp dir, and these tmp files are accumulating
over time.

Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Eryu Guan
2017-01-11 17:38:45 +08:00
parent ce4616c888
commit 81aa85deac
4 changed files with 19 additions and 14 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
here=`pwd`
tmp=`mktemp -d`
tmp=/tmp/$$
status=0
trap "exit \$status" 0 1 2 3 15
chpid=0