diff mbox

[3/8] glsl_parser_test.py: For glsl 1.00 use correct glslparsertest_gles2 binary

Message ID 1366524583-25982-3-git-send-email-tom.gall@linaro.org
State New
Headers show

Commit Message

Tom Gall April 21, 2013, 6:09 a.m. UTC
When the glsl_version is 1.00, use the glslparsertest_gles2 binary

Signed-off-by: Tom Gall <tom.gall@linaro.org>
---
 framework/glsl_parser_test.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/framework/glsl_parser_test.py b/framework/glsl_parser_test.py
index 66e6dd3..914904d 100755
--- a/framework/glsl_parser_test.py
+++ b/framework/glsl_parser_test.py
@@ -368,8 +368,14 @@  class GLSLParserTest(PlainExecTest):
 			return None
 
 		assert(self.config is not None)
+
+		if self.config.get('config', 'glsl_version') == '1.00':
+			runner = "glslparsertest_gles2"
+		else:
+			runner = "glslparsertest"
+
 		command = [
-			path.join(testBinDir, 'glslparsertest'),
+			path.join(testBinDir, runner),
 			self.__filepath,
 			self.config.get('config', 'expect_result'),
 			self.config.get('config', 'glsl_version')