From e607bf4fefad5c0f34d84da5dc38fb5767edf785 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Tue, 15 Jan 2013 20:54:11 +0800 Subject: [PATCH] LU-2562 test: cleanup previous test result in sanity.sh, test_51ba only depends on test_51b, but test_51a also create files under $DIR/$tdir, which causes test_51ba fail for it also takes those files into account. Change-Id: I42f491f64c8d2d65bee656c167c9523274cd7200 Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/5183 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Niu Yawei Reviewed-by: Jian Yu Reviewed-by: Nathaniel Clark Reviewed-by: Andreas Dilger --- lustre/tests/sanity.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index d470133..1ebc64d 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3484,7 +3484,7 @@ run_test 50 "special situations: /proc symlinks ===============" test_51a() { # was test_51 # bug 1516 - create an empty entry right after ".." then split dir - test_mkdir $DIR/$tdir + test_mkdir -p $DIR/$tdir touch $DIR/$tdir/foo $MCREATE $DIR/$tdir/bar rm $DIR/$tdir/foo @@ -3505,6 +3505,9 @@ test_51b() { [ $PARALLEL == "yes" ] && skip "skip parallel run" && return local BASE=$DIR/$tdir + # cleanup the directory + rm -fr $BASE + test_mkdir -p $BASE local mdtidx=$(printf "%04x" $($LFS getstripe -M $BASE)) -- 1.8.3.1