[tests] Update fma3 check to work with Py3.
[oota-llvm.git] / test / lit.cfg
index 13323b367b7c7d3e050e4cf209587fb5f92b7c23..49cb6b1df75a9fde014f4528346afb06d76aef62 100644 (file)
@@ -297,7 +297,8 @@ if 'darwin' == sys.platform:
                                     stdout = subprocess.PIPE)
     except OSError:
         print("Could not exec sysctl")
-    if -1 != sysctl_cmd.stdout.read().find("hw.optional.fma: 1"):
+    result = sysctl_cmd.stdout.read().decode('ascii')
+    if -1 != result.find("hw.optional.fma: 1"):
         config.available_features.add('fma3')
     sysctl_cmd.wait()