[Git][NTPsec/ntpsec][master] I: the current testing framework verbose output is hard to

Richard Laager (@rlaager) gitlab at mg.gitlab.com
Sun Apr 24 21:39:01 UTC 2022



Richard Laager pushed to branch master at NTPsec / ntpsec


Commits:
6fd322d6 by James Browning at 2022-04-19T14:23:21-07:00
I: the current testing framework verbose output is hard to
understand and looks like garbage in Python 3.

STR:
- Configure and build in Python 3 as per usual
- run "./waf check -v"

AR: output is hard to parse and bad looking
ER: output should be easy to parse and easy on the eyes.

- - - - -


1 changed file:

- wafhelpers/test.py


Changes:

=====================================
wafhelpers/test.py
=====================================
@@ -34,9 +34,12 @@ def test_print_log(ctx):
         if retval or error:
             pprint("RED", "****** ERROR ******\n")
 
-            print(error or lines)
+            print("\n*** stdout ***\n")
+            print(polystr(lines))
+            print("\n*** stderr ***\n")
+            print(polystr(error))
 
         if (not retval) and (not error):
-            pprint("GREEN", "****** LOG ******\n", lines)
+            pprint("GREEN", "****** LOG ******\n", polystr(lines))
 
         print("")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/6fd322d6482e4b987bea00b7ea87e4af6d31442e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/6fd322d6482e4b987bea00b7ea87e4af6d31442e
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20220424/cdef5958/attachment.htm>


More information about the vc mailing list