Whamcloud - gitweb
b=20784
authormaxim <maxim>
Fri, 18 Sep 2009 10:55:59 +0000 (10:55 +0000)
committermaxim <maxim>
Fri, 18 Sep 2009 10:55:59 +0000 (10:55 +0000)
i=rread
Minor fix to sanity test 215: 'min' columns of lnet.peers can be negative,
so regexp should be aware of it.

lustre/tests/sanity.sh

index 69cf076..6c15e9e 100644 (file)
@@ -6907,7 +6907,7 @@ test_215() { # for bug 18102
        TOTAL_LINES=$(cat $TMP/lnet_peers.out |wc -l)
        OTHER_LINES=$(($TOTAL_LINES - 1))
        MATCHED_LINES=$(cat $TMP/lnet_peers.out |tail -$TOTAL_LINES |
-                       grep -c "^[0-9.]\+@[a-z0-9]\+ *[0-9]\+ *[a-Z]\+ *[0-9]\+ *[0-9]\+ *[0-9]\+ *[0-9]\+ *[0-9]\+ *[0-9]\+$")
+                       grep -c "^[0-9.]\+@[a-z0-9]\+ *[0-9]\+ *[a-Z]\+ *[0-9]\+ *[0-9]\+ *-\?[0-9]\+ *[0-9]\+ *-\?[0-9]\+ *[0-9]\+$")
        [ "$MATCHED_LINES" = "$OTHER_LINES" ] || (cat $TMP/lnet_peers.out && 
                                                  error "/proc/sys/lnet/peers misformatted")
        diff $TMP/lnet_peers.out $TMP/lnet_peers.sys ||