From: Bob Glossman Date: Mon, 31 Aug 2015 19:22:32 +0000 (-0700) Subject: LU-4341 test: skip failing sanity test 170 X-Git-Tag: 2.7.62~10 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F16146%2F5;p=fs%2Flustre-release.git LU-4341 test: skip failing sanity test 170 Since sanity.sh, test_170 always fails in sles11 testing add it to ALWAYS_EXCEPT when testing on sles11. This can be removed when we have a real fix for the test. Test-Parameters: mdsdistro=sles11sp3 ossdistro=sles11sp3 \ clientdistro=sles11sp3 mdsfilesystemtype=ldiskfs \ mdtfilesystemtype=ldiskfs ostfilesystemtype=ldiskfs \ testlist=sanity Signed-off-by: Bob Glossman Change-Id: I76a2bfaad2bff8786ea832a4c9cabb11a71c11e4 Reviewed-on: http://review.whamcloud.com/16146 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index a61c417..5423200 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -16,6 +16,24 @@ ALWAYS_EXCEPT=" 42a 42b 42c 42d 45 51d 68b $SANITY_EXCE # bug number for skipped tests: LU-2036 ALWAYS_EXCEPT=" 76 $ALWAYS_EXCEPT" +is_sles11() # LU-4341 +{ + 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 -ge 3 ]; then + return 0 + fi + fi + return 1 +} + +if is_sles11; then # LU-4341 + ALWAYS_EXCEPT="$ALWAYS_EXCEPT 170" +fi + SRCDIR=$(cd $(dirname $0); echo $PWD) export PATH=$PATH:/sbin