Whamcloud - gitweb
LU-1740 test: skip test for interop
authorBob Glossman <bob.glossman@intel.com>
Mon, 17 Sep 2012 15:41:05 +0000 (08:41 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Sep 2012 13:48:46 +0000 (09:48 -0400)
Since 2.2 is missing a fix for getattr counters, skip a portion of
test 133b when the server is 2.2.  This will avoid an interop test failure.

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I37a9b641fa85b4e7cd53512d9624d9b748d32da3
Reviewed-on: http://review.whamcloud.com/4011
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 7a00d4d..6d8d4d0 100644 (file)
@@ -7483,8 +7483,11 @@ test_133b() {
        chmod 444 ${testdir}/${tfile} || error "chmod failed"
        check_stats $SINGLEMDS "setattr" 1
        do_facet $SINGLEMDS $LCTL set_param mdt.*.md_stats=clear
-       ls -l ${testdir}/${tfile} > /dev/null|| error "ls failed"
-       check_stats $SINGLEMDS "getattr" 1
+       if [ $(lustre_version_code $SINGLEMDS) -ne $(version_code 2.2.0) ]
+       then            # LU-1740
+               ls -l ${testdir}/${tfile} > /dev/null|| error "ls failed"
+               check_stats $SINGLEMDS "getattr" 1
+       fi
        $LFS df || error "lfs failed"
        check_stats $SINGLEMDS "statfs" 1