lkml.org 
[lkml]   [2018]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH tip/core/rcu 6/6] torture: Make kvm-find-errors.sh find build warnings
Date
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>
---
tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh b/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh
index 7742fac44781..98f650c9bf54 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh
+++ b/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"
--
2.5.2
\
 
 \ /
  Last update: 2018-04-23 05:14    [W:1.639 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site