From ee21318c481d26351a284bd3227b99bf88abeece Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 17 Apr 2012 17:33:16 -0700 Subject: 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 Acked-by: Jose Fonseca --- framework/gleantest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework') 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 -- cgit v1.2.3