From eb9bc557a38c97c4c11a49aa4fbf2ca9ff07df7f Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Mon, 18 Mar 2013 14:17:31 -0400 Subject: [PATCH] LU-2405 tests: account for inter-op testing sanity/17g Account for where patch hasn't been applied and skip known broken servers. Signed-off-by: Nathaniel Clark Change-Id: I1dd354c36c38e2569ce0cfaf57d4cd35a65117ff Reviewed-on: http://review.whamcloud.com/5754 Reviewed-by: Bobi Jam Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo --- lustre/tests/sanity.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 7fc579d..997edf7 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -468,9 +468,18 @@ str_repeat() { # Long symlinks and LU-2241 test_17g() { - test_mkdir -p $DIR/$tdir + test_mkdir -p $DIR/$tdir local TESTS="59 60 61 4094 4095" + # Fix for inode size boundary in 2.1.4 + [ $(lustre_version_code $SINGLEMDS) -lt $(version_code 2.1.4) ] && + TESTS="4094 4095" + + # Patch not applied to 2.2 or 2.3 branches + [ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.2.0) ] && + [ $(lustre_version_code $SINGLEMDS) -le $(version_code 2.3.55) ] && + TESTS="4094 4095" + for i in $TESTS; do local SYMNAME=$(str_repeat 'x' $i) ln -s $SYMNAME $DIR/$tdir/f$i || error "failed $i-char symlink" -- 1.8.3.1