From e2358603962e3f848eb16730c053d5eb9bee3f6d Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Mon, 17 Sep 2012 08:41:05 -0700 Subject: [PATCH] LU-1740 test: skip test for interop 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 Change-Id: I37a9b641fa85b4e7cd53512d9624d9b748d32da3 Reviewed-on: http://review.whamcloud.com/4011 Reviewed-by: Minh Diep Tested-by: Hudson Reviewed-by: Yu Jian Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 7a00d4d..6d8d4d0 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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 -- 1.8.3.1