rcu.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools/rcutorture: Fix BUG parsing of console.log
@ 2020-11-02 17:12 Anna-Maria Behnsen
  2020-11-03  4:14 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Anna-Maria Behnsen @ 2020-11-02 17:12 UTC (permalink / raw)
  To: RCU; +Cc: Paul E . McKenney, Anna-Maria Behnsen, Benedikt Spranger

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>
---
 tools/testing/selftests/rcutorture/bin/parse-console.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools/rcutorture: Fix BUG parsing of console.log
  2020-11-02 17:12 [PATCH] tools/rcutorture: Fix BUG parsing of console.log Anna-Maria Behnsen
@ 2020-11-03  4:14 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2020-11-03  4:14 UTC (permalink / raw)
  To: Anna-Maria Behnsen; +Cc: RCU, Benedikt Spranger

On Mon, Nov 02, 2020 at 06:12:20PM +0100, Anna-Maria Behnsen wrote:
> 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>

Good catch, queued for testing and review, thank you!

							Thanx, Paul

> ---
>  tools/testing/selftests/rcutorture/bin/parse-console.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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"
> -- 
> 2.20.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-03  4:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 17:12 [PATCH] tools/rcutorture: Fix BUG parsing of console.log Anna-Maria Behnsen
2020-11-03  4:14 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).