summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorAlex Corscadden <alexc@vmware.com>2009-10-08 15:50:06 -0700
committerVinson Lee <vlee@vmware.com>2009-10-08 15:50:06 -0700
commit08fd7213005d268f87c07773c3ed0bd01058cab2 (patch)
tree83affed1f4dbf9ceb6d22745fa27da0e97c7f39f /framework
parent40fdd42fa36f3681bd75f2ea45fe0a021f7f6a62 (diff)
Make piglit work on OpenSUSE 11.1.
OpenSUSE 11.1 has it's lspci in /sbin/ and this isn't in PATH. Add a try/except to catch any failure to open lspci or glxinfo.
Diffstat (limited to 'framework')
-rw-r--r--framework/core.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/core.py b/framework/core.py
index 14f77b590..efa527151 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -265,9 +265,12 @@ class Environment:
self.filter = []
def run(self, command):
- p = subprocess.Popen(
- command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- (stdout, stderr) = p.communicate()
+ try:
+ p = subprocess.Popen(
+ command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ (stdout, stderr) = p.communicate()
+ except:
+ return "Failed to run " + command
return stderr+stdout
def collectData(self):