test: improve Python3 compatibility for swift_build_sdk_interfaces

Return a "unicode" "string" (UTF-8 decoded data) rather than a
bytes-like object as the rest of the script expects the normal unicode
string.
This commit is contained in:
Saleem Abdulrasool
2020-06-30 13:23:17 -07:00
parent 7d5def91b0
commit f7ee082210

View File

@@ -105,7 +105,7 @@ def run_command(args, dry_run):
try:
out, err = proc.communicate()
exitcode = proc.returncode
return (exitcode, out, err)
return (exitcode, out.decode('utf-8'), err.decode('utf-8'))
except KeyboardInterrupt:
proc.terminate()
raise