From: Andreas Dilger Date: Mon, 3 Jun 2019 14:39:19 +0000 (-0600) Subject: LU-1538 tests: standardize test script init - sanity X-Git-Tag: 2.12.55~9 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8fa23490bb5fd0df2b1def8b14d51919abde6555;hp=8fa23490bb5fd0df2b1def8b14d51919abde6555;p=fs%2Flustre-release.git 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 Signed-off-by: James Nunez Change-Id: I1ef6639bcb3eb5179bd44da13b35fd843c267156 Reviewed-on: https://review.whamcloud.com/34863 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Wei Liu ---