diff options
author | 2021-12-04 21:00:55 -0800 | |
---|---|---|
committer | 2022-02-01 17:25:41 -0800 | |
commit | a711aaccf6b389b7fa7f3e35b4f99c437a36b9b2 (patch) | |
tree | cc5f6eccb5c98ea535265abe10e05eae3a40f9b3 /tools/testing/selftests/rcutorture/bin/parse-console.sh | |
parent | torture: Output per-failed-run summary lines from torture.sh (diff) | |
download | linux-dev-a711aaccf6b389b7fa7f3e35b4f99c437a36b9b2.tar.xz linux-dev-a711aaccf6b389b7fa7f3e35b4f99c437a36b9b2.zip |
torture: Make kvm.sh summaries note runs having only KCSAN reports
Runs having only KCSAN reports will normally print a summary line
containing only a "Bugs:" entry. However, these bugs might or might
not be KCSAN reports. This commit therefore flags runs in which all the
"Bugs:" entries are KCSAN reports.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/parse-console.sh')
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/parse-console.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tools/testing/selftests/rcutorture/bin/parse-console.sh index 9f624bd53c27..822eb037a057 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-console.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh @@ -138,6 +138,16 @@ then then summary="$summary Bugs: $n_bugs" fi + n_kcsan=`egrep -c 'BUG: KCSAN: ' $file` + if test "$n_kcsan" -ne 0 + then + if test "$n_bugs" = "$n_kcsan" + then + summary="$summary (all bugs kcsan)" + else + summary="$summary KCSAN: $n_kcsan" + fi + fi n_calltrace=`grep -c 'Call Trace:' $file` if test "$n_calltrace" -ne 0 then |