Whamcloud - gitweb
LU-10201 tests: Fix overly greedy grep in conf_sanity test 20 57/29957/4
authorOleg Drokin <oleg.drokin@intel.com>
Tue, 7 Nov 2017 00:59:20 +0000 (19:59 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 19 Jan 2018 19:10:25 +0000 (19:10 +0000)
Need to better ensure the mountpoint matching so that only
/mnt/lustre is mtched, but not /mnt/lustre-{mds,ost}

Change-Id: I0ca274a358de3a38542e05bb5682641459fea93d
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/29957
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/conf-sanity.sh

index 14255b3..441c1e8 100644 (file)
@@ -730,7 +730,7 @@ test_20() {
        [ -e $DIR/$tfile ] && error "$DIR/$tfile exists incorrectly"
        remount_client rw $MOUNT || error "remount_client with rw failed"
        touch $DIR/$tfile || error "touch $DIR/$tfile failed"
-       MCNT=$(grep -c $MOUNT /etc/mtab)
+       MCNT=$(grep -c $MOUNT' ' /etc/mtab)
        [ "$MCNT" -ne 1 ] && error "$MOUNT in /etc/mtab $MCNT times"
        umount_client $MOUNT
        stop_mds || error "Unable to stop MDS"