Skip to contentSkip to conversation

patchtest: add stronger indication for failed tests

PATCH Superseded [email protected] 2 participants 2 messages Feb 16, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 patchtest: add stronger indication for failed tests

From: Simone Weiß <[email protected]>

Do not only log that there has been an issue but add WARNING before for local runs. Hopefully this helps to avoid that people reading the log to quickly miss issues.

Fixes [YOCTO #15389]

sfdf

---
 scripts/patchtest | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/patchtest +2 -2
index d0dc6e8fac..3163420220 100755
@@ -164,9 +164,9 @@ def run(patch, logfile=None):
     if premerge_result == 2 and postmerge_result == 2:
         logger.error('patchtest: No test cases found - did you specify the correct suite directory?')
     if premerge_result == 1 or postmerge_result == 1:
-        logger.error('patchtest: At least one patchtest caused a failure or an error - please check')
+        logger.error('WARNING: patchtest: At least one patchtest caused a failure or an error - please check')
     else:
-        logger.error('patchtest: All patchtests passed')
+        logger.error('OK: patchtest: All patchtests passed')
     print('----------------------------------------------------------------------\n')
     return premerge_result or postmerge_result
 
Signature · 1 line
2.39.2
#1 lore raw

Please ignore this, v2 is already sent...

Quoted 39 lines · On Fri, 2024-02-16 at 21:00 +0000, [email protected] wrote:

From: Simone Weiß <[email protected]>

Do not only log that there has been an issue but add WARNING before for local
runs. Hopefully this helps to avoid that people reading the log to quickly miss
issues.

Fixes [YOCTO #15389]

sfdf

---
 scripts/patchtest | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/patchtest +0 -0
index d0dc6e8fac..3163420220 100755
@@ -164,9 +164,9 @@ def run(patch, logfile=None):

     if premerge_result == 2 and postmerge_result == 2:
         logger.error('patchtest: No test cases found - did you specify the correct suite directory?')
     if premerge_result == 1 or postmerge_result == 1:
-        logger.error('patchtest: At least one patchtest caused a failure or an error - please check')
+        logger.error('WARNING: patchtest: At least one patchtest caused a failure or an error - please check')
     else:
-        logger.error('patchtest: All patchtests passed')
+        logger.error('OK: patchtest: All patchtests passed') print('------------------------------------------------------------ ----------\n')
     return premerge_result or postmerge_result