]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
better print for stdout and stderr of subprocess, salome test
authorPaul RASCLE <paul.rascle@edf.fr>
Thu, 28 Jun 2018 15:11:51 +0000 (17:11 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Thu, 28 Jun 2018 15:11:51 +0000 (17:11 +0200)
bin/appliskel/salome_tester/salome_test_driver.py

index 6bc8b97712929ccd1806113f16f12638fbd5e584..dfceaa3996e4ae611c061530417168a88d4587c2 100644 (file)
@@ -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