From 9b3a45e95e231d17926ef5cffc604a27e271f66e Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Thu, 20 Sep 2012 11:36:24 -0700 Subject: [PATCH] LU-1783 tests: skip directory atime update test in SLES11 SP1 Since this failure is seen only in SP1 which is already out of support, skipping the subtest for this sles version. Test-Parameters: clientdistro=sl11 Signed-off-by: Bob Glossman Change-Id: I9f996b1e9955052b46ad7e3310e21f118bfa77cf Reviewed-on: http://review.whamcloud.com/4062 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index ed9e5b7..ea9a8cc 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -2536,7 +2536,23 @@ run_test 39k "write, utime, close, stat ========================" # this should be set to future TEST_39_ATIME=`date -d "1 year" +%s` +is_sles11() # LU-1783 +{ + if [ -r /etc/SuSE-release ] + then + local vers=`grep VERSION /etc/SuSE-release | awk '{print $3}'` + local patchlev=`grep PATCHLEVEL /etc/SuSE-release \ + | awk '{print $3}'` + if [ $vers -eq 11 ] && [ $patchlev -eq 1 ] + then + return 0 + fi + fi + return 1 +} + test_39l() { + is_sles11 && skip "SLES 11 SP1" && return # LU-1783 remote_mds_nodsh && skip "remote MDS with nodsh" && return local atime_diff=$(do_facet $SINGLEMDS lctl get_param -n mdd.*.atime_diff) -- 1.8.3.1