Update lnet-selftest to call stopall for local_mode
and cleanupall otherwise.
Signed-off-by: Abrarahmed Momin <abrar.habib@seagate.com>
Change-Id: I5dff3df8b45afc4a582556f7dd6bc92409efd380
Reviewed-on: http://review.whamcloud.com/19308
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
# 2) it's theoretically possible that lst tests congest comm paths so tightly
# that mounted lustre wouldn't able to perform some of its background activities
if is_mounted $MOUNT || is_mounted $MOUNT2; then
- local_mode && CLIENTONLY=yes
+ if local_mode; then
+ CLIENTONLY=yes
+ stopall
+ else
+ LOAD_MODULES_REMOTE=true
+ cleanupall
+ fi
RESTORE_MOUNT=yes
- LOAD_MODULES_REMOTE=true
- cleanupall
fi
build_test_filter