From: Dave Chinner <david@fromorbit.com>
To: xfs@oss.sgi.com
Subject: [PATCH 4/6] generic: cleanup space after test in TESTDIR
Date: Wed, 23 Apr 2014 08:04:32 +1000 [thread overview]
Message-ID: <1398204274-2113-5-git-send-email-david@fromorbit.com> (raw)
In-Reply-To: <1398204274-2113-1-git-send-email-david@fromorbit.com>
From: Dave Chinner <dchinner@redhat.com>
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>
---
tests/generic/070 | 1 +
tests/xfs/292 | 2 ++
2 files changed, 3 insertions(+)
diff --git a/tests/generic/070 b/tests/generic/070
index 3c88df0..f593d84 100755
--- a/tests/generic/070
+++ b/tests/generic/070
@@ -34,6 +34,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
cd /
+ rm -rf $TEST_DIR/fsstress
rm -f $tmp.*
}
diff --git a/tests/xfs/292 b/tests/xfs/292
index d67db47..2910118 100755
--- a/tests/xfs/292
+++ b/tests/xfs/292
@@ -57,6 +57,8 @@ mkfs.xfs -f $fsfile 2>&1 | sed -e "s:$fsfile:FILENAME:g" | grep meta-data
echo "mkfs.xfs with cmdline geometry"
mkfs.xfs -f -d su=16k,sw=5 $fsfile 2>&1 | sed -e "s:$fsfile:FILENAME:g" | grep meta-data
+rm -f $fsfile
+
# success, all done
status=0
exit
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2014-04-22 22:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-22 22:04 [PATCH 0/6] xfstests: fixes and new tests Dave Chinner
2014-04-22 22:04 ` [PATCH 1/6] generic/204: tweak reserve pool size Dave Chinner
2014-04-23 15:21 ` Christoph Hellwig
2014-04-22 22:04 ` [PATCH 2/6] shared/051: remove ACL count subtest Dave Chinner
2014-04-23 15:21 ` Christoph Hellwig
2014-04-22 22:04 ` [PATCH 3/6] xfs: introduce new large ACL test Dave Chinner
2014-04-23 15:23 ` Christoph Hellwig
2014-04-23 23:09 ` Dave Chinner
2014-04-23 23:44 ` [PATCH 3/6 v2] generic: " Dave Chinner
2014-04-25 5:36 ` Christoph Hellwig
2014-04-22 22:04 ` Dave Chinner [this message]
2014-04-23 15:23 ` [PATCH 4/6] generic: cleanup space after test in TESTDIR Christoph Hellwig
2014-04-22 22:04 ` [PATCH 5/6] xfs: remove dmapi tests from the auto group Dave Chinner
2014-04-23 15:24 ` Christoph Hellwig
2014-04-22 22:04 ` [PATCH 6/6] filter: xfs_repair emits new corruption messagse Dave Chinner
2014-04-23 15:24 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1398204274-2113-5-git-send-email-david@fromorbit.com \
--to=david@fromorbit.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).