From 84030bf26c1763edf9ac17a8cd2765e9163294bf Mon Sep 17 00:00:00 2001 From: Abrarahmed Momin Date: Sat, 2 Apr 2016 08:55:37 +0530 Subject: [PATCH] LU-7776 tests: lnet-selftest.sh local_mode failure Update lnet-selftest to call stopall for local_mode and cleanupall otherwise. Signed-off-by: Abrarahmed Momin Change-Id: I5dff3df8b45afc4a582556f7dd6bc92409efd380 Reviewed-on: http://review.whamcloud.com/19308 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Doug Oucharek --- lustre/tests/lnet-selftest.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/tests/lnet-selftest.sh b/lustre/tests/lnet-selftest.sh index 6b0dd02..a1c525d 100755 --- a/lustre/tests/lnet-selftest.sh +++ b/lustre/tests/lnet-selftest.sh @@ -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 -- 1.8.3.1