Whamcloud - gitweb
LU-11607 tests: replace lustre_version in mds-survey/pcc/sec 28/35928/3
authorJames Nunez <jnunez@whamcloud.com>
Mon, 26 Aug 2019 21:43:54 +0000 (15:43 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 12 Nov 2019 04:06:21 +0000 (04:06 +0000)
commit3643e27f7a97dac195a102db4cf7f895e019159c
tree0176c24493fb9bf1248c620065b82a1a7ed89243
parentc8790ae52393d96fc71aa4edea0e5051c54431e9
LU-11607 tests: replace lustre_version in mds-survey/pcc/sec

The routine get_lustre_env() is available to all Lustre test
suites and sets an environment variable for the Lustre
version of servers; MGS, MDS1, etc.

In mds-survey, sanity-sec, ost-pools,replay-single and
sanity-pcc, replace the calls to lustre_version_code()
and lustre_build_version() for all server types with
definitions from get_lustre_env().

While doing this, replace ‘lustre_version_code $SINGLEMDS’
with ‘MDS1_VERSION’.  If skip_env() is called based on a
Lustre version check, change this to skip().

Clean up around any modifications by removing calls to
return() or exit() after skip() or skip_env().

Test-Parameters: trivial testlist=mds-survey,sanity-pcc,sanity-sec,ost-pools,replay-single
Test-Parameters: fstype=zfs testlist=mds-survey,sanity-pcc,sanity-sec,ost-pools,replay-single
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: Ia4b0f426943fdc2f4bcdaa312fbb6f6113ee058f
Reviewed-on: https://review.whamcloud.com/35928
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
lustre/tests/mds-survey.sh
lustre/tests/ost-pools.sh
lustre/tests/replay-ost-single.sh
lustre/tests/sanity-pcc.sh
lustre/tests/sanity-sec.sh