aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin
diff options
context:
space:
mode:
authorAnna-Maria Behnsen <anna-maria@linutronix.de>2020-11-02 18:12:20 +0100
committerPaul E. McKenney <paulmck@kernel.org>2020-11-06 17:13:58 -0800
commit01f9e708d9eae6335ae9ff25ab09893c20727a55 (patch)
tree30659ab9db4d334c4ef254376ce9aabdccc00446 /tools/testing/selftests/rcutorture/bin
parenttools/nolibc: Fix a spelling error in a comment (diff)
downloadlinux-dev-01f9e708d9eae6335ae9ff25ab09893c20727a55.tar.xz
linux-dev-01f9e708d9eae6335ae9ff25ab09893c20727a55.zip
tools/rcutorture: Fix BUG parsing of console.log
For the rcutorture test summary log file console.log of virtual machines is parsed. When a console.log contains "DEBUG", BUG counter is incremented because regular expression does not handle to ignore DEBUG. Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de> Reviewed-by: Benedikt Spranger <b.spranger@linutronix.de> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to '')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/parse-console.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh
index e03338091a06..263b1be50008 100755
--- a/tools/testing/selftests/rcutorture/bin/parse-console.sh
+++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh
@@ -133,7 +133,7 @@ then
then
summary="$summary Warnings: $n_warn"
fi
- n_bugs=`egrep -c 'BUG|Oops:' $file`
+ n_bugs=`egrep -c '\bBUG|Oops:' $file`
if test "$n_bugs" -ne 0
then
summary="$summary Bugs: $n_bugs"