Whamcloud - gitweb
LU-11524 tests: fix sanity-sec test_31 for all situations 80/33380/5
authorSebastien Buisson <sbuisson@ddn.com>
Tue, 16 Oct 2018 12:52:46 +0000 (21:52 +0900)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 19 Oct 2018 23:12:19 +0000 (23:12 +0000)
commitfde0e290a8cc370f6eb7986e9ada8b5bcc41fef7
tree5f5a75c318820b6db78be5d03f676f06c116603b
parentfe7c13bd48d3933f3d6b78e4e2ba9ea26190b8b7
LU-11524 tests: fix sanity-sec test_31 for all situations

In case setupall() is called with server_only, this info must be
passed to init_param_vars(), and init_param_vars() must return
immediately. Otherwise, it will try to do client-specific tunings
(including quota settings) whereas no clients are mounted.

Modify cleanup_31() in sanity-sec so that client-specific
tunings are done via setupall().
Also make client umount more robust in test_31.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I2db17c139768d0842ff65ac8313a8e7d1484c4ef
Reviewed-on: https://review.whamcloud.com/33380
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
lustre/tests/sanity-sec.sh
lustre/tests/test-framework.sh