Whamcloud - gitweb
LU-3812 tests: check Lustre version in sanity-scrub test 10b 29/7529/3
authorJian Yu <jian.yu@intel.com>
Tue, 3 Sep 2013 07:57:54 +0000 (15:57 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 18 Nov 2013 04:23:27 +0000 (04:23 +0000)
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 <jian.yu@intel.com>
Change-Id: I66646a27fc30399fcb718a961362800988d7175e
Reviewed-on: http://review.whamcloud.com/7529
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Wei Liu <wei3.liu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-scrub.sh

index 018fee2..5f49006 100644 (file)
@@ -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!"