diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-02-03 13:05:37 +0200 |
---|---|---|
committer | Eryu Guan <eguan@redhat.com> | 2017-02-04 14:16:43 +0800 |
commit | 080446d64f723d3ed2b2c0e23884cee162399802 (patch) | |
tree | 8ad46fb6cf1de52dcc99b78016d910d0ea9697ab | |
parent | 6c0aa31ff1744be96d9413beeb8dd5488c2db1d6 (diff) | |
download | xfstests-dev-080446d64f723d3ed2b2c0e23884cee162399802.tar.gz |
generic/007: cleanup $TEST_DIR/$seq dir
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>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
-rwxr-xr-x | tests/generic/007 | 1 | ||||
-rwxr-xr-x | tests/overlay/007 | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/generic/007 b/tests/generic/007 index 88cd6ccf07..cfa4554143 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 ccf2b75502..ed7914b65c 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 |