During test run some files are still build, which should have thier
warnings counted.

Note that if compile only run is done, test.log won't exist. This is
fine as grep errors are ignored and only matches are counted with wc.

Signed-off-by: Kacper Michajłow <[email protected]>
---
 fate-recv.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
2.50.1

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

Reply via email to