Whamcloud - gitweb
LU-11607 tests: replace version/fstype in sanity-dom/quota 66/35766/2
authorJames Nunez <jnunez@whamcloud.com>
Sun, 11 Aug 2019 16:44:16 +0000 (10:44 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Sep 2019 01:52:29 +0000 (01:52 +0000)
commit9d5d2714c074a51c9a348b917f3cf32c5005b3b8
treee8c1a4652b55f5dae5b54fdac2ddaa4f003fc6e9
parent56b8c3d8d1acf2f6c491ed64126ce72199ace276
LU-11607 tests: replace version/fstype in sanity-dom/quota

The routine get_lustre_env() is available to all Lustre test
suites and sets an environment variable for the file system
type for MDS1 and OST1 and sets variables for the Lustre
version of servers.

In sanity-dom and sanity-quota, replace the calls to
facet_fstype() and lustre_version_code() for all server
types with definitions in get_lustre_env().

While doing this, replace 'facet_fstype $SINGLEMDS' and
'lustre_version_code $SINGLEMDS' with $mds1_FSTYPE
and $MDS1_VERSION, respectively.

Clean up around any modifications by removing calls to
return after skip() or skip_env() and convert spaces
to tabs.

Test-Parameters: trivial testlist=sanity-dom,sanity-quota
Test-Parameters: fstype=zfs testlist=sanity-dom,sanity-quota
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I4dffae5ad69aa2dec5b85e285a9b314b9b35b2ba
Reviewed-on: https://review.whamcloud.com/35766
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-dom.sh
lustre/tests/sanity-quota.sh