generic: cleanup space after test in TESTDIR

A couple of tests leave behind large files or directory structures
when they complete, which leads to small TEST_DEVs running out of
space during other tests. Make those space hogs clean up after
themselves so that random tests don't fail with ENOSPC errors.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Dave Chinner
2014-04-28 10:54:38 +10:00
committed by Dave Chinner
parent 31a50c7a81
commit ca931235b7
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
cd /
rm -rf $TEST_DIR/fsstress
rm -f $tmp.*
}