From: Jian Yu Date: Tue, 3 Sep 2013 07:57:54 +0000 (+0800) Subject: LU-3812 tests: check Lustre version in sanity-scrub test 10b X-Git-Tag: 2.4.2-RC1~34 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F7529%2F3;p=fs%2Flustre-release.git LU-3812 tests: check Lustre version in sanity-scrub test 10b This patch adds Lustre version check codes into sanity-scrub test 10b to make the test work with servers which have the following patch: Lustre-commit: f5491211ed7251a45e4e6916539cd2a2ab5e6038 Lustre-change: http://review.whamcloud.com/6343 Test-Parameters: envdefinitions=SLOW=yes,ENABLE_QUOTA=yes \ clientdistro=el6 serverdistro=el6 clientarch=x86_64 \ serverarch=x86_64 serverjob=lustre-master serverbuildno=1666 \ testlist=sanity-scrub Signed-off-by: Jian Yu Change-Id: I66646a27fc30399fcb718a961362800988d7175e Reviewed-on: http://review.whamcloud.com/7529 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Wei Liu Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-scrub.sh b/lustre/tests/sanity-scrub.sh index 018fee2..5f49006 100644 --- a/lustre/tests/sanity-scrub.sh +++ b/lustre/tests/sanity-scrub.sh @@ -686,6 +686,9 @@ test_10a() { run_test 10a "non-stopped OI scrub should auto restarts after MDS remount (1)" test_10b() { + [[ $(lustre_version_code $SINGLEMDS) -ge $(version_code 2.4.50) ]] && + skip "Need MDS version less than 2.4.50" && return + scrub_prep 0 mds_backup_restore || error "(1) Fail to backup/restore!"