From: Paul RASCLE Date: Thu, 28 Jun 2018 15:11:51 +0000 (+0200) Subject: better print for stdout and stderr of subprocess, salome test X-Git-Tag: SHAPER_V9_1_0RC1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=791f0c29d31d7f53aa68633b75ca24e4973b2091;p=modules%2Fkernel.git better print for stdout and stderr of subprocess, salome test --- 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