[Piglit] [PATCH 1/4] framework: Allow ExecTest commands to be space-separated strings.
Eric Anholt
eric at anholt.net
Thu Sep 8 23:07:37 PDT 2011
---
framework/exectest.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/framework/exectest.py b/framework/exectest.py
index dc9dc9e..59cb090 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -23,6 +23,8 @@
import os
import subprocess
+import string
+import types
from core import Test, testBinDir, TestResult
@@ -36,6 +38,9 @@ class ExecTest(Test):
self.command = command
self.env = {}
+ if type(self.command) is types.StringType:
+ self.command = string.split(self.command)
+
def interpretResult(self, out, results):
raise NotImplementedError
return out
--
1.7.5.4
More information about the Piglit
mailing list