[Git][NTPsec/ntpsec][20L-Dec24-unholy] test: pass output through polystr when writing build/main/test.log

James Browning gitlab at mg.gitlab.com
Sat Dec 26 15:24:14 UTC 2020



James Browning pushed to branch 20L-Dec24-unholy at NTPsec / ntpsec


Commits:
9e18925e by James Browning at 2020-12-26T07:21:39-08:00
test: pass output through polystr when writing build/main/test.log

- - - - -


1 changed file:

- wafhelpers/test.py


Changes:

=====================================
wafhelpers/test.py
=====================================
@@ -1,6 +1,7 @@
 from __future__ import print_function
 
 from waflib.Logs import pprint
+from pylib.poly import polystr
 
 
 def test_write_log(ctx):
@@ -16,9 +17,9 @@ def test_write_log(ctx):
             fp.write("BINARY      : %s\n" % binary)
             fp.write("RETURN VALUE: %s\n" % retval)
             fp.write("\n*** stdout ***\n")
-            fp.write(str(lines))
+            fp.write(polystr(lines))
             fp.write("\n*** stderr ***\n")
-            fp.write(str(error))
+            fp.write(polystr(error))
             fp.write("\n\n\n")
 
     pprint("BLUE", "Wrote test log to: ", file_out)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/9e18925e1e4f71b7cef4cf74dc3b060ffd65a8cb

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/9e18925e1e4f71b7cef4cf74dc3b060ffd65a8cb
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/20201226/daacba8d/attachment.htm>


More information about the vc mailing list