瀏覽代碼

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=
 for i in ${rundir}/*/Make.out
 do
-	if grep -q "error:" < $i
+	if egrep -q "error:|warning:" < $i
 	then
-		files="$files $i"
+		egrep "error:|warning:" < $i > $i.diags
+		files="$files $i.diags $i"
 	fi
 done
 if test -n "$files"