소스 검색

torture: Make kvm-find-errors.sh find build warnings

Currently, kvm-find-errors.sh looks only for build errors ("error:"),
so this commit makes it also locate build warnings ("warning:").

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Nicholas Piggin <npiggin@gmail.com>
Paul E. McKenney 7 년 전
부모
커밋
da1a1e1923
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh

+ 3 - 2
tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh

@@ -22,9 +22,10 @@ editor=${EDITOR-vi}
 files=
 files=
 for i in ${rundir}/*/Make.out
 for i in ${rundir}/*/Make.out
 do
 do
-	if grep -q "error:" < $i
+	if egrep -q "error:|warning:" < $i
 	then
 	then
-		files="$files $i"
+		egrep "error:|warning:" < $i > $i.diags
+		files="$files $i.diags $i"
 	fi
 	fi
 done
 done
 if test -n "$files"
 if test -n "$files"