From fe56eb2de7c0d3fdcc43ab779ab79746875e7838 Mon Sep 17 00:00:00 2001
From: Alexandre Aubin <alex.aubin@mailoo.org>
Date: Tue, 21 Feb 2023 16:51:12 +0100
Subject: [PATCH] Lower the warning count complaining threshold now that
 postgresql warnings are hidden

---
 lib/tests_coordination.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/tests_coordination.sh b/lib/tests_coordination.sh
index fa448d8..c29b766 100644
--- a/lib/tests_coordination.sh
+++ b/lib/tests_coordination.sh
@@ -149,9 +149,9 @@ TEST_LAUNCHER () {
     # Check that the number of warning ain't higher than a treshold
     local n_warnings=$(grep --extended-regexp '^[0-9]+\s+.{1,15}WARNING' $current_test_log | wc -l)
     # (we ignore this test for upgrade from older commits to avoid having to patch older commits for this)
-    if [ "$n_warnings" -gt 50 ] && [ "$test_type" != "TEST_UPGRADE" -o "$test_arg" == "" ]
+    if [ "$n_warnings" -gt 30 ] && [ "$test_type" != "TEST_UPGRADE" -o "$test_arg" == "" ]
     then
-        if [ "$n_warnings" -gt 200 ]
+        if [ "$n_warnings" -gt 100 ]
         then
             log_error "There's A SHITLOAD of warnings in the output ! If those warnings are coming from some app build step and ain't actual warnings, please redirect them to the standard output instead of the error output ...!"
             log_report_test_failed