[Piglit] [PATCH] framework: log output of wglinfo on Windows and Cygwin

Brian Paul brianp at vmware.com
Mon Nov 12 15:51:08 PST 2012


As we do glxinfo on Linux.
---
 framework/core.py |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/framework/core.py b/framework/core.py
index 48771cf..5a97dba 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -29,6 +29,7 @@ import platform
 import re
 import stat
 import subprocess
+import string
 import sys
 import time
 import traceback
@@ -389,9 +390,13 @@ class Environment:
 
 	def collectData(self):
 		result = {}
-		if platform.system() != 'Windows':
+		system = platform.system()
+		if (system == 'Windows' or
+		    string.find(system, "CYGWIN_NT") == 0):
+			result['wglinfo'] = self.run('wglinfo')
+		else:
 			result['glxinfo'] = self.run('glxinfo')
-		if platform.system() == 'Linux':
+		if system == 'Linux':
 			result['lspci'] = self.run('lspci')
 		return result
 
-- 
1.7.3.4



More information about the Piglit mailing list