From f360741dec76a9c9d831f0b547596891ea321599 Mon Sep 17 00:00:00 2001 From: James Browning Date: Sun, 10 Apr 2022 16:23:34 -0700 Subject: [PATCH] clean test output up in Python 3 --- wafhelpers/test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wafhelpers/test.py b/wafhelpers/test.py index 9351a5675..6bba34881 100644 --- a/wafhelpers/test.py +++ b/wafhelpers/test.py @@ -31,12 +31,13 @@ def test_print_log(ctx): pprint("YELLOW", "RETURN VALUE:", retval) print("") - if retval or error: + if retval: pprint("RED", "****** ERROR ******\n") - print(error or lines) + print(polystr(error) or polystr(lines)) - if (not retval) and (not error): - pprint("GREEN", "****** LOG ******\n", lines) + else: + pprint("GREEN", "****** LOG ******\n", + polystr(lines), polystr(error)) print("") -- 2.32.0