[Piglit] [PATCH 09/20] framework: Treat wglinfo, glxinfo and lspci output as text, not binary data.
Jon Severinsson
jon at severinsson.net
Wed Apr 17 09:14:48 PDT 2013
On Python 3.x this has the side-effect of returning a str instead of a bytes.
---
framework/core.py | 6 +++++-
1 fil ändrad, 5 tillägg(+), 1 borttagning(-)
diff --git a/framework/core.py b/framework/core.py
index f871409..2c7f92d 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -400,7 +400,11 @@ class Environment:
def run(self, command):
try:
p = subprocess.Popen(
- command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ command,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ universal_newlines=True
+ )
(stdout, stderr) = p.communicate()
except:
return "Failed to run " + command
--
1.7.10.4
More information about the Piglit
mailing list