[gjs/april-maintenance] CI: Correctly count errors in script test



commit e532cd7b4cab55165480fb01321b35e0d3ad6a6b
Author: Philip Chimento <philip chimento gmail com>
Date:   Fri May 1 15:13:43 2020 -0700

    CI: Correctly count errors in script test
    
    The previous code would produce a blank on 0 errors, not 0.

 test/test-ci.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/test/test-ci.sh b/test/test-ci.sh
index ef36a609..1c866587 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -72,7 +72,7 @@ do_Create_Artifacts_Folder () {
 
 do_Check_Script_Errors () {
     local total=0
-    total=$(cat scripts.log | grep 'not ok ' | awk '{total+=1}END{print total}')
+    total=$(cat scripts.log | grep 'not ok ' | wc -l)
 
     if test "$total" -gt 0; then
         echo '-----------------------------------------'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]