diff options
author | Vinson Lee <vlee@vmware.com> | 2010-10-07 15:38:05 -0700 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-10-07 15:38:05 -0700 |
commit | 568647d2091d4d217e3ea663f584b4cb61e5efea (patch) | |
tree | 147481ecb7f4d1bdae6f5e7e77cb845f9da4c024 /framework | |
parent | 6533d757436e77b4f9bab665efdb1da6e4e6673f (diff) |
gleantest: Store the command as a member variable.
Store the command during object creation but append the global
parameters, which can be changed, at runtime.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/gleantest.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/framework/gleantest.py b/framework/gleantest.py index 4cabe4f9..90291c8e 100644 --- a/framework/gleantest.py +++ b/framework/gleantest.py @@ -41,6 +41,11 @@ class GleanTest(Test): def __init__(self, name): Test.__init__(self) self.name = name + self.command = \ + [gleanExecutable(), "-r", os.path.join(gleanResultDir(), self.name), + "-o", + "-v", "-v", "-v", + "-t", "+"+self.name] self.env = {} def run(self): @@ -53,10 +58,7 @@ class GleanTest(Test): checkDir(os.path.join(gleanResultDir(), self.name), False) glean = subprocess.Popen( - [gleanExecutable(), "-r", os.path.join(gleanResultDir(), self.name), - "-o", - "-v", "-v", "-v", - "-t", "+"+self.name] + GleanTest.globalParams, + self.command + GleanTest.globalParams, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=fullenv, |