summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-04-17 17:33:16 -0700
committerKenneth Graunke <kenneth@whitecape.org>2012-05-10 10:47:02 -0700
commitee21318c481d26351a284bd3227b99bf88abeece (patch)
tree9d438789db6aca7429be3a4e4e1bfe58129d811a /framework
parent1b43f0c310f4749a5dd4381eff50f91cc588f7ac (diff)
framework: Don't create Glean result dir if it's a variable.
I want to be able to get a list of commands being run without specifying an actual result directory. So, I'm specifying it as $GLEAN_RESULT_DIR. In that case, I don't want it to create a literal directory called $GLEAN_RESULT_DIR. (The % is for python-style substitutions.) Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/gleantest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/gleantest.py b/framework/gleantest.py
index c746e668c..bf9a16483 100644
--- a/framework/gleantest.py
+++ b/framework/gleantest.py
@@ -45,7 +45,8 @@ class GleanTest(ExecTest):
"-v", "-v", "-v",
"-t", "+"+name])
- checkDir(os.path.join(gleanResultDir(resdir), name), False)
+ if resdir[0] not in '$%':
+ checkDir(os.path.join(gleanResultDir(resdir), name), False)
self.name = name