[Piglit] [PATCH 1/2] framework: Make error about mixed GLES and GL more imformative
Dylan Baker
dylan at pnwbakers.com
Wed Jul 18 18:53:58 UTC 2018
This just adds a helpful message about what directory the conflicting
shaders are in.
---
framework/test/shader_test.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py
index 719b92f9d..de3e92f4b 100644
--- a/framework/test/shader_test.py
+++ b/framework/test/shader_test.py
@@ -251,7 +251,8 @@ class MultiShaderTest(ReducedProcessMixin, PiglitBaseTest):
# check
raise exceptions.PiglitInternalError(
'GLES and GL shaders in the same command!\n'
- 'Cannot pick a shader_runner binary!')
+ 'Cannot pick a shader_runner binary!\n'
+ 'in file: {}'.format(os.path.dirname(each)))
else:
prog = parser.prog
--
2.18.0
More information about the Piglit
mailing list