selftest: Utils.cmd_output returns byte string
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 6 May 2019 01:14:37 +0000 (13:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 6 May 2019 07:12:18 +0000 (07:12 +0000)
Convert the returned byte string into a string.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/wscript

index 2fd38e20a4ad6d6a9450709a3d8d9620d36fc6f5..44455480eb1cca3179cb5b74ce0340d14ea34307 100644 (file)
@@ -276,6 +276,7 @@ def cmd_testonly(opt):
         # We try to find the correct libasan automatically
         libasan = Utils.cmd_output('ldd bin/texpect | grep libasan| cut -f 3 -d \ ',
                                    silent=True).strip()
+        libasan = libasan.decode('utf8')
 
         # Have the selftest.pl LD_PRELOAD libasan in the right spot
         env.OPTIONS += " --asan_so_path=" + libasan