From: Amir Goldstein <amir73il@gmail.com>
To: Eryu Guan <eguan@redhat.com>
Cc: fstests@vger.kernel.org
Subject: [PATCH v2] generic/007: cleanup $TEST_DIR/$seq dir
Date: Fri, 3 Feb 2017 13:05:37 +0200 [thread overview]
Message-ID: <1486119937-2803-1-git-send-email-amir73il@gmail.com> (raw)
Test generic/007 was failing after running test overlay/007,
because the latter left behind a non empty directory named 007
in test dir and the former failed to mkdir a directory with the
same name.
Cleanup $TEST_DIR/$seq both at end of overlay/007 and beginning of
generic/007 to avoid this collision.
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
tests/generic/007 | 1 +
tests/overlay/007 | 1 +
2 files changed, 2 insertions(+)
v2:
- Cleanup just $TEST_DIR/007
v1:
- Cleanup $TEST_DIR/$seq* files after tests
diff --git a/tests/generic/007 b/tests/generic/007
index 88cd6cc..cfa4554 100755
--- a/tests/generic/007
+++ b/tests/generic/007
@@ -64,6 +64,7 @@ while [ $i -le $num_filenames ]; do
let i=$i+1
done
+rm -rf $TEST_DIR/$seq
mkdir $TEST_DIR/$seq
cd $TEST_DIR/$seq
$here/src/nametest -l $sourcefile -s $seed -i $iterations -z
diff --git a/tests/overlay/007 b/tests/overlay/007
index ccf2b75..ed7914b 100755
--- a/tests/overlay/007
+++ b/tests/overlay/007
@@ -37,6 +37,7 @@ _cleanup()
{
cd /
rm -f $tmp.*
+ rm -rf $TEST_DIR/$seq
}
# get standard environment, filters and checks
--
2.7.4
reply other threads:[~2017-02-03 11:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1486119937-2803-1-git-send-email-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=eguan@redhat.com \
--cc=fstests@vger.kernel.org \
/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