autobuild: convert top_commit_msg to str for Py 3
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 11 Dec 2018 21:20:31 +0000 (10:20 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 12 Dec 2018 03:38:13 +0000 (04:38 +0100)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py

index f26a5b2095e6716941c291c8b4866d19eb2233e3..2ea9e55b932775b3b83097fcafe3d6783305d8db 100755 (executable)
@@ -930,6 +930,7 @@ os.environ['TMPDIR'] = test_tmpdir
 
 # get the top commit message, for emails
 top_commit_msg = run_cmd("git log -1", dir=gitroot, output=True)
+top_commit_msg = top_commit_msg.decode('utf-8', 'backslashreplace')
 
 try:
     os.makedirs(testbase)