From ef63c034b437d47cd10fe7ee94ed614ac1359f44 Mon Sep 17 00:00:00 2001 From: Bob Glossman Date: Mon, 31 Aug 2015 12:22:32 -0700 Subject: [PATCH] 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 --- lustre/tests/sanity.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 1.8.3.1