From 791f0c29d31d7f53aa68633b75ca24e4973b2091 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 28 Jun 2018 17:11:51 +0200 Subject: [PATCH] better print for stdout and stderr of subprocess, salome test --- bin/appliskel/salome_tester/salome_test_driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/appliskel/salome_tester/salome_test_driver.py b/bin/appliskel/salome_tester/salome_test_driver.py index 6bc8b9771..dfceaa399 100644 --- a/bin/appliskel/salome_tester/salome_test_driver.py +++ b/bin/appliskel/salome_tester/salome_test_driver.py @@ -41,12 +41,12 @@ def runTest(command): # Display output and errors def processResult(res, out, err): if out: - print(out) + print(out.decode('utf_8')) pass if err: print(" ** Detected error **") print("Error code: ", res) - print(err, end=' ') + print(err.decode('utf_8'), end=' \n') print(" ** end of message **") pass return res -- 2.39.2