summaryrefslogtreecommitdiff
path: root/tests/testutils/repo/ostree.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/repo/ostree.py')
-rw-r--r--tests/testutils/repo/ostree.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/testutils/repo/ostree.py b/tests/testutils/repo/ostree.py
index 1cd7c8979..d4e50fea0 100644
--- a/tests/testutils/repo/ostree.py
+++ b/tests/testutils/repo/ostree.py
@@ -40,9 +40,8 @@ class OSTree(Repo):
return config
def latest_commit(self):
- output = subprocess.check_output([
+ return subprocess.check_output([
self.ostree, 'rev-parse',
'--repo', self.repo,
'master'
- ])
- return output.decode('UTF-8').strip()
+ ], universal_newlines=True).strip()