Skip to content

Commit

Permalink
if variable out is in bytes convert to string
Browse files Browse the repository at this point in the history
(cherry picked from commit 79b2e46)
  • Loading branch information
JanCaha authored and nyalldawson committed Jan 27, 2021
1 parent 824abc2 commit d6d27c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .docker/qgis_resources/test_runner/qgis_testrunner.py
Expand Up @@ -112,6 +112,8 @@ def __get_test_function(test_module_name):
command_line = ' '.join(args)
print("QGIS Test Runner - launching QGIS as %s ..." % command_line)
out, returncode = run("sh -c " + quote(command_line), withexitstatus=1)
if isinstance(out, bytes):
out = out.decode("utf-8")
assert returncode is not None
print("QGIS Test Runner - QGIS exited.")
ok = out.find('(failures=') < 0 and \
Expand Down

0 comments on commit d6d27c4

Please sign in to comment.