Whamcloud - gitweb
LU-1538 tests: standardize test script init - sanity 63/34863/3
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 3 Jun 2019 14:39:19 +0000 (08:39 -0600)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2019 03:25:49 +0000 (03:25 +0000)
commit8fa23490bb5fd0df2b1def8b14d51919abde6555
treeabcf5412255554ba1bae92e25cce4656e45e2715
parentbcfd0e040d1536410ba6c301f64d4f8ea6a8797a
LU-1538 tests: standardize test script init - sanity

Standardize the initial Lustre test script initialization of the
test-framework.sh for clarity and consistency.

The LUSTRE path is already normalized in init_test_env(), so this
doesn't need to be done in the caller.  Use $(...) subshells instead
of `...` in the affected lines.  Remove PATH, NAME, TMP, LFS, LCTL
variable initialization, since it is already done in init_test_env().

Move MACHINEFILE into init_test_env().

Move get_lustre_env() to the end of init_test_env(). All test scripts
currently call init_test_env() and this move will allow all test
scripts to use the variables defined in get_lustre_env() without
having to modify the individual test scripts.

Move all definitions of ALWAYS_EXCEPT to after init_test_env()
and init_logging() and call build_test_filter() immediately
after these and SLOW definitions.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I1ef6639bcb3eb5179bd44da13b35fd843c267156
Reviewed-on: https://review.whamcloud.com/34863
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Wei Liu <sarah@whamcloud.com>
lustre/tests/llmount.sh
lustre/tests/llmountcleanup.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh