[igt-dev] [PATCH i-g-t 01/12] code_cov_parse_info: silent some messages by default

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Tue Jan 17 14:05:56 UTC 2023


From: Mauro Carvalho Chehab <mchehab at kernel.org>

Those aren't really needed on normal output.

Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 scripts/code_cov_parse_info | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/code_cov_parse_info b/scripts/code_cov_parse_info
index 72a1e8c2b0ad..1498bd09cdba 100755
--- a/scripts/code_cov_parse_info
+++ b/scripts/code_cov_parse_info
@@ -1030,7 +1030,7 @@ if ($has_filter) {
 }
 
 my $ntests=scalar(%test_names);
-printf "Number of tests: %d\n", $ntests if ($ntests > 1);
+printf "Number of tests: %d\n", $ntests if ($stat && $ntests > 1);
 
 if ($show_files) {
 	for my $f(sort keys %used_source) {
-- 
2.39.0



More information about the igt-dev mailing list