diff --git a/tests/tools_not_linked_usr/tools_not_linked_usr.py b/tests/tools_not_linked_usr/tools_not_linked_usr.py index 74053cf..7be6393 100755 --- a/tests/tools_not_linked_usr/tools_not_linked_usr.py +++ b/tests/tools_not_linked_usr/tools_not_linked_usr.py @@ -14,7 +14,6 @@ # # Author: Bruno Goncalves -from os import walk import subprocess import sys import re @@ -25,7 +24,10 @@ def run(cmd): stdout, stderr = p.communicate() retcode = p.returncode - output = stdout + stderr + output = stdout.decode('ascii', 'ignore') + stderr.decode('ascii', 'ignore') + + # remove new line from last line + output = output.rstrip() print(output) return retcode, output