Whamcloud - gitweb
LU-1538 tests: standardize test script init - dne-part-4 55/35255/3
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 17 Jun 2019 22:20:41 +0000 (16:20 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 Jun 2019 21:33:53 +0000 (21:33 +0000)
commit37d6d157a2a94e022f2e153c9191aa559daec321
tree7cd2a062bf40729c2170226c2ee8d04b2e2ecdb7
parentef708dee307230c2c1fbd4872d625c09e838338b
LU-1538 tests: standardize test script init - dne-part-4

Standardize the initial Lustre test script initialization 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 NAME, CHECKSTAT,
TMP, SAVE_PWD,SRCDIR, PATH, MULTIOP, SETUP, CLEANUP variable
initialization, since it is already done in init_test_env() or
not needed in the test script.  Remove all calls to get_lustre_env()
in the test scripts since this is called in init_test_env().

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

Test-Parameters: trivial
Test-Parameters: testgroup=review-dne-part-4
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I9d2a7e6bedd2d66e5ee564405b86b6206226769f
Reviewed-on: https://review.whamcloud.com/35255
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/insanity.sh
lustre/tests/mmp.sh
lustre/tests/replay-ost-single.sh
lustre/tests/replay-single.sh
lustre/tests/sanity-dom.sh
lustre/tests/sanity-flr.sh
lustre/tests/sanity-pfl.sh
lustre/tests/sanity-quota.sh