Whamcloud - gitweb
LU-11564 tests: add version check sanity-hsm tests 63/33463/5
authorJames Nunez <jnunez@whamcloud.com>
Wed, 24 Oct 2018 15:21:53 +0000 (09:21 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 Oct 2018 18:00:47 +0000 (18:00 +0000)
commitaa8a2afee3793728d01126dea6eb274325db3593
tree6585d34d9ac9c21ee77ecd79961d23dec51a0fd7
parent4afee32188d38d2969ea160ddec64cd8359e12ca
LU-11564 tests: add version check sanity-hsm tests

sanity-hsm test 24g, 260a and 260b were added to Lustre
tag 2.11.56.15. sanity-hsm test 1d was added to Lustre
2.10.59. Thus, we need to check that the server is
2.11.56 or later before running test 24g, 260a, and 260b
and is 2.10.59 or later for test 1d.

Several tests call the lustre_version_code() routine to check
the Lustre code version of the MDS. Make this call once at the
beginning of the test suite and keep the version in a global
variable.

Also, remove the call to return() after all calls to skip().

Test-Parameters: trivial mdsjob=lustre-b2_10 ossjob=lustre-b2_10 serverbuildno=136 testlist=sanity-hsm
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: If89e730ba9352b5eaa2dc24686372237375a7556
Reviewed-on: https://review.whamcloud.com/33463
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-hsm.sh