Whamcloud - gitweb
LU-10655 tests: eliminate 'ssh exited with exit code 1' 25/31525/2
authorVladimir Saveliev <c17830@cray.com>
Sat, 10 Feb 2018 10:21:44 +0000 (13:21 +0300)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 12 Apr 2018 15:45:02 +0000 (15:45 +0000)
Eliminate meaningless 'ssh exited with exit code 1' issued by stop()
and wait_exit_ST()

Lustre-change: https://review.whamcloud.com/31263
Lustre-commit: 243189198481c9d261a383ae24de5060c82a02ab

Signed-off-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Elena V. Gryaznova <c17455@cray.com>
Cray-bug-id: MRP-1483
Change-Id: Ie1af3cda0b48b7bf482ea35b84c93e38d0f6c0a9
Test-Parameters: trivial
Reviewed-by: Elena Gryaznova <c17455@cray.com>
Reviewed-by: Sergey Cheremencev <c17829@cray.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31525
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/tests/test-framework.sh

index f4dbdc2..095fa26 100755 (executable)
@@ -1626,7 +1626,7 @@ stop() {
     [ -z $HOST ] && echo stop: no host for $facet && return 0
 
     local mntpt=$(facet_mntpt $facet)
-    running=$(do_facet ${facet} "grep -c $mntpt' ' /proc/mounts") || true
+       running=$(do_facet ${facet} "grep -c $mntpt' ' /proc/mounts || true")
     if [ ${running} -ne 0 ]; then
         echo "Stopping $mntpt (opts:$@) on $HOST"
        do_facet ${facet} $UMOUNT $@ $mntpt
@@ -2745,7 +2745,8 @@ wait_exit_ST () {
     local running
     # conf-sanity 31 takes a long time cleanup
     while [ $WAIT -lt 300 ]; do
-        running=$(do_facet ${facet} "lsmod | grep lnet > /dev/null && lctl dl | grep ' ST '") || true
+       running=$(do_facet ${facet} "lsmod | grep lnet > /dev/null &&
+lctl dl | grep ' ST ' || true")
         [ -z "${running}" ] && return 0
         echo "waited $WAIT for${running}"
         [ $INTERVAL -lt 64 ] && INTERVAL=$((INTERVAL + INTERVAL))