diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-07-23 11:49:44 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-07-23 11:59:45 -0700 |
commit | b1afa023eb40d1bfc47a224e4f03433648822f41 (patch) | |
tree | 3ed0103845f2ebe4644ff7517252317a8637c08a /generated_tests/genclbuiltins.py | |
parent | 7385ab123927222b1a832d09d1aacea12a53eee2 (diff) |
genclbuiltins: Add positional argument specifier.
Fix build failure with Python 2.6 introduced with commit
6adec8a68e2068114b9ff34ea462f22c32f80620.
Traceback (most recent call last):
File "piglit/generated_tests/generate-cl-relational-builtins.py", line 194, in <module>
main()
File "piglit/generated_tests/generate-cl-relational-builtins.py", line 191, in main
gen(DATA_TYPES, CLC_VERSION_MIN, functions, testDefs, dirName)
File "piglit/generated_tests/genclbuiltins.py", line 395, in gen
testIdx, vecSize, (fnType is 'tss'))
File "piglit/generated_tests/genclbuiltins.py", line 333, in print_test
f.write(' tolerance {} ulp'.format(tolerance))
ValueError: zero length field name in format
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'generated_tests/genclbuiltins.py')
-rw-r--r-- | generated_tests/genclbuiltins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generated_tests/genclbuiltins.py b/generated_tests/genclbuiltins.py index eaf953284..cdef80bd1 100644 --- a/generated_tests/genclbuiltins.py +++ b/generated_tests/genclbuiltins.py @@ -332,7 +332,7 @@ def print_test(f, fnName, argType, functionDef, tests, testIdx, vecSize, tss): '[' + str(vecSize) + '] ' + ' '.join([argVal]*vecSize) ) if arg == 0: - f.write(' tolerance {} '.format(tolerance)) + f.write(' tolerance {0} '.format(tolerance)) # Use ulp tolerance for float types if isFloatType(argTypes[arg]): f.write('ulp') |