diff options
| author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-04-19 17:46:32 -0400 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-05-15 13:32:25 -0400 |
| commit | da1a1e192306ffd931b76910564bbe93a05900d1 (patch) | |
| tree | c0fb12245cbc51059d0031531d3e717f6dc59ec0 | |
| parent | b4e8afbd2113bccaa96f194ecf9f406259f0bd8e (diff) | |
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>
| -rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm-find-errors.sh | 5 |
1 files 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} | |||
| 22 | files= | 22 | files= |
| 23 | for i in ${rundir}/*/Make.out | 23 | for i in ${rundir}/*/Make.out |
| 24 | do | 24 | do |
| 25 | if grep -q "error:" < $i | 25 | if egrep -q "error:|warning:" < $i |
| 26 | then | 26 | then |
| 27 | files="$files $i" | 27 | egrep "error:|warning:" < $i > $i.diags |
| 28 | files="$files $i.diags $i" | ||
| 28 | fi | 29 | fi |
| 29 | done | 30 | done |
| 30 | if test -n "$files" | 31 | if test -n "$files" |
