From 847836235678b8c86117b05db7f10cf2ebb36262 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Wed, 11 May 2011 23:25:05 -0700 Subject: [PATCH] LU-231 sanity test_170: FAIL: expected 248 bad lines, but got 249 Port b1_8 fix to master: Short malformed line may not be counted into bad lines. Signed-off-by: Lai Siyao Change-Id: Iebf8b48b775a9cb393caa854e51aaf9981e08d0f Reviewed-on: http://review.whamcloud.com/537 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 4e747ee..6b2cbdc 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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 -- 1.8.3.1