Whamcloud - gitweb
LU-10461 tests: call exit in the skip routine 23/34023/2
authorJames Nunez <james.a.nunez@intel.com>
Sun, 21 Jan 2018 22:31:31 +0000 (15:31 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Jan 2019 06:28:53 +0000 (06:28 +0000)
commit8c6308656bb4de6b661ab60226a45ec8ae7729fe
tree585b90dc51d7a8fbcdaf585eef88316f08d852f2
parent53cde2399719b56817bca26d6895a114a6feed1d
LU-10461 tests: call exit in the skip routine

There are many reasons to not run, or skip, a test; the test
may require a certain number of servers or a certain Lustre version.
In these cases, the skip() or skip_env() routine is called. When we
call skip, the intention is to exit the routine early. Thus, call
‘exit 0’ at the end of the skip() routine.

Some calls to skip() are changed to skip_env() when a test is being
skipped due to the Lustre configuration or test environment.

Backported from b2_12 branch to b2_10 (partial backport: sanity.sh
changes are not included here):
Lustre-change: https://review.whamcloud.com/30964
Lustre-commit: 33aad7829de56353cca5bbd082d95d6821a7be9c

Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I42fd9535c0a803f334dfc5685f451a6bdc85e84b
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-on: https://review.whamcloud.com/34023
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh