This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository fateserver.

commit 6eabf9bfda82ce7adc7e4034900c0088ad6b673f
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Mon Aug 10 20:27:45 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Mon Aug 10 20:27:45 2026 +0200

    fate-recv.sh: count warnings in test.log
    
    During the test run, some files are still built, and their warnings
    should be counted.
    
    Note that if a compile-only run is done, test.log will not exist.
    This is fine, as grep errors are ignored and only matches are
    counted with wc.
    
    Extend the warnings view in log.cgi the same way, so it keeps covering
    the logs the count comes from.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 fate-recv.sh | 2 +-
 log.cgi      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fate-recv.sh b/fate-recv.sh
index f0a4d5b..668f490 100755
--- a/fate-recv.sh
+++ b/fate-recv.sh
@@ -105,7 +105,7 @@ fi
 
 unset IFS
 
-nwarn=$(grep -Eci '\<warning\>' compile.log) || nwarn=0
+nwarn=$(grep -Ei '\<warning\>' compile.log test.log 2>/dev/null | wc -l)
 
 echo "stats:$ntest:$npass:$nwarn" >>summary
 
diff --git a/log.cgi b/log.cgi
index 159094e..237ee40 100755
--- a/log.cgi
+++ b/log.cgi
@@ -24,7 +24,7 @@ use FATE;
 cgi_path_is_trustworthy;
 
 # Logs the warning count in fate-recv.sh covers.
-my @warn_logs = qw/compile/;
+my @warn_logs = qw/compile test/;
 
 # Count each distinct warning line in the @names logs of a report, same as
 # fate-recv.sh. Only the warning line is kept to make it readable.

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to