From: Bob Glossman Date: Thu, 20 Sep 2012 18:36:24 +0000 (-0700) Subject: LU-1783 tests: skip directory atime update test in SLES11 SP1 X-Git-Tag: 2.3.51~57 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9b3a45e95e231d17926ef5cffc604a27e271f66e 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 --- 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)