[Piglit] [PATCH 3/3] make some parts of the piglit framework unicode aware.
Kenney Phillis
kphillisjr at gmail.com
Thu Feb 7 13:10:10 PST 2013
This fixes resume failures when paths are interpreted as unicode when the script expects ascii.
---
framework/shader_test.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/framework/shader_test.py b/framework/shader_test.py
index 03478fc..f3920f9 100755
--- a/framework/shader_test.py
+++ b/framework/shader_test.py
@@ -125,8 +125,9 @@ class ShaderTest(PlainExecTest):
Test.__init__(self, runConcurrent=True)
assert(isinstance(shader_runner_args, list))
- assert(isinstance(shader_runner_args[0], str))
-
+ if not isinstance(shader_runner_args[0], str) and not isinstance(shader_runner_args[0], unicode):
+ assert(false) # Fail if the test is not a encoded string.
+
self.__run_standalone = run_standalone
self.__shader_runner_args = shader_runner_args
self.__test_filepath = shader_runner_args[0]
--
1.7.9.5
More information about the Piglit
mailing list