Whamcloud - gitweb
LU-7776 tests: lnet-selftest.sh local_mode failure 08/19308/2
authorAbrarahmed Momin <abrar.habib@seagate.com>
Sat, 2 Apr 2016 03:25:37 +0000 (08:55 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:53:18 +0000 (03:53 +0000)
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>
lustre/tests/lnet-selftest.sh

index 6b0dd02..a1c525d 100755 (executable)
@@ -56,10 +56,14 @@ fi
 # 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