[Piglit] [PATCH 3/3] generated_tests: make cache template name a reasonable length

Dylan Baker baker.dylan.c at gmail.com
Mon Sep 28 18:05:19 PDT 2015


Without this change the name would end up being a full path in a full
path. It's hard to manage, ugly to look at, and generally annoying.
---
 generated_tests/templates/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/generated_tests/templates/__init__.py b/generated_tests/templates/__init__.py
index d4d5d39..fe384e8 100644
--- a/generated_tests/templates/__init__.py
+++ b/generated_tests/templates/__init__.py
@@ -73,6 +73,7 @@ def template_file(generator, template):
     return Template(filename=os.path.join(TEMPLATE_DIR, generator, template),
                     module_directory=os.path.join(MAKO_TEMP_DIR, generator),
                     future_imports=_FUTURES,
+                    uri=template,  # make the cache name reasonable
                     output_encoding='utf-8')
 
 
-- 
2.5.3



More information about the Piglit mailing list