From 2ecce620a67478365c2d0c57ca580c32914c09fe Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Tue, 10 May 2011 01:50:12 -0700 Subject: [PATCH] LU-231 sanity_test_170: FAIL: expected 248 bad lines, but got 249 if the length of malformed line is less than sizeof(struct ptldebug_header), it's not counted into bad lines if this line is at the end of log file. Signed-off-by: Lai Siyao Change-Id: Ib2cb1a81f2b8d00c855f11d232f7643e66cebeb0 Reviewed-on: http://review.whamcloud.com/526 Tested-by: Hudson Reviewed-by: Johann Lombardi --- 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 61e3b99..4336c9c 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -6596,7 +6596,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