Whamcloud - gitweb
LU-11607 tests: create routine to get Lustre env 19/34319/8
authorJames Nunez <jnunez@whamcloud.com>
Fri, 28 Dec 2018 16:23:32 +0000 (09:23 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Apr 2019 06:18:23 +0000 (06:18 +0000)
commit08badb42a5040bd56d3dc27fac40bc3831c15f93
treec0401289c1ad6de68a6e6749b6bdf3a2028f5cb6
parent0205858f6533c7cff8fe8b43d09cece15e0b5385
LU-11607 tests: create routine to get Lustre env

The Lustre tests in the test suites make repeated calls
to a small number functions that relate to the Lustre
environment. Some examples are the version of the Lustre
server or client and the file system type of the server.

Collect these calls into a routine called get_lustre_env()
in the test-framework.sh library and replace calls in
sanity with the global variables.

Lustre-change: https://review.whamcloud.com/33938
Lustre-commit: 4eb4479b0ea050d99033a9bac9994d2f1509200c

This patch corrected a bracket issue with sanity test 156,
but made the test fail for ZFS testing. Thus, we are
backporting a second patch into this one so this patch
passes testing.

Lustre-change: https://review.whamcloud.com/34114
Lustre-commit: 42c4dab3c817f9f03efe457fd33e946ed68fab14

Test-Parameters: trivial

Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I01dd00dd50cca39c964c5fd8abc3f51ab3c8e6b8
Reviewed-on: https://review.whamcloud.com/33938
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
(cherry picked from commit 4eb4479b0ea050d99033a9bac9994d2f1509200c)
Reviewed-on: https://review.whamcloud.com/34319
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
lustre/tests/sanity.sh
lustre/tests/test-framework.sh