Whamcloud - gitweb
LU-2405 tests: account for inter-op testing sanity/17g
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 18 Mar 2013 18:17:31 +0000 (14:17 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 22 Mar 2013 18:32:45 +0000 (14:32 -0400)
Account for where patch hasn't been applied and skip known broken
servers.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I1dd354c36c38e2569ce0cfaf57d4cd35a65117ff
Reviewed-on: http://review.whamcloud.com/5754
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/tests/sanity.sh

index 7fc579d..997edf7 100644 (file)
@@ -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"