From 6039fc8fd47ffd73a31b073687f32cac0a35a8aa Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 27 Jun 2014 00:15:27 -0600 Subject: [PATCH] LU-3703 tests: skip test for getfattr 2.4.44-6 or less Non-SLES distros may also have an older version of getfattr, so sanity.sh test_234 should also be skipped on those systems. Signed-off-by: Andreas Dilger Change-Id: I012554dd840715d336d3286cc46c56f53d500c1e Reviewed-on: http://review.whamcloud.com/10867 Tested-by: Jenkins Reviewed-by: Nathaniel Clark Reviewed-by: Bob Glossman Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8de0173..f1a4f87 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -12460,11 +12460,16 @@ test_234() { touch $DIR/$tdir/$tfile || error "touch failed" # OBD_FAIL_LLITE_XATTR_ENOMEM $LCTL set_param fail_loc=0x1405 - if [ ! -f /etc/SuSE-release ]; then + # output of the form: attr 2 4 44 3 fc13 x86_64 + V=($(IFS=".-" rpm -q attr)) + if [[ ${V[1]} > 2 || ${V[2]} > 4 || ${V[3]} > 44 || + ${V[1]} = 2 && ${V[2]} = 4 && ${V[3]} = 44 && ${V[4]} > 6 ]]; then # attr pre-2.4.44-7 had a bug with rc - # LU-3703 - SLES clients have older attr + # LU-3703 - SLES 11 and FC13 clients have older attr getfattr -n user.attr $DIR/$tdir/$tfile && error "getfattr should have failed with ENOMEM" + else + skip "LU-3703: attr version $(getfattr --version) too old" fi $LCTL set_param fail_loc=0x0 rm -rf $DIR/$tdir -- 1.8.3.1