Whamcloud - gitweb
LU-231 sanity test_170: FAIL: expected 248 bad lines, but got 249
authorLai Siyao <laisiyao@whamcloud.com>
Thu, 12 May 2011 06:25:05 +0000 (23:25 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 23 May 2011 03:50:23 +0000 (20:50 -0700)
Port b1_8 fix to master:
Short malformed line may not be counted into bad lines.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: Iebf8b48b775a9cb393caa854e51aaf9981e08d0f
Reviewed-on: http://review.whamcloud.com/537
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 4e747ee..6b2cbdc 100644 (file)
@@ -7346,7 +7346,9 @@ test_170() {
         local expected_good=$((good_line1 + good_line2*2))
 
         rm -f $TMP/${tfile}*
-        if [ $bad_line -ne $bad_line_new ]; then
+       # LU-231, short malformed line may not be counted into bad lines
+        if [ $bad_line -ne $bad_line_new ] &&
+                  [ $bad_line -ne $((bad_line_new - 1)) ]; then
                 error "expected $bad_line bad lines, but got $bad_line_new"
                 return 1
         fi