This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 0142394bf215cdf72112a3bf89295d2d2f8c8757 (commit) via 8def3eafd3536e4ef84e3170be720a505cba5211 (commit) from eb4a525b020632bd5011f14ff9f759eef926dee2 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/0142394bf215cdf72112a3bf89295d2d2f8c8...
commit 0142394bf215cdf72112a3bf89295d2d2f8c8757 Author: Tomas Gavenciak gavento@ucw.cz Date: Tue Nov 22 22:28:01 2011 +0100
Fix generated GP_TEST parameters
The parameters need to be separated by commas ","
diff --git a/tests/core/GP_WritePixel.test.gen.c.t b/tests/core/GP_WritePixel.test.gen.c.t index 2661371..e488ce7 100644 --- a/tests/core/GP_WritePixel.test.gen.c.t +++ b/tests/core/GP_WritePixel.test.gen.c.t @@ -49,7 +49,7 @@ static void dump_buffer(const char *name, char *buf, unsigned int buf_len) %% for offset in range(0, 4) %% for len in range(0, 6) %% for aligment in [0, 1] -GP_TEST(GP_WritePixel{{ "%i_%i_%i_%i"|format(pixelsize, offset, len, aligment) }}, {{ ""offset=%i len=%i aligment=%i""|format(offset, len, aligment) }}) +GP_TEST(GP_WritePixel{{ "%i_%i_%i_%i"|format(pixelsize, offset, len, aligment) }}, {{ ""offset=%i, len=%i, aligment=%i,""|format(offset, len, aligment) }}) { char write_buf[{{ 25 * pixelsize//8 }}] = {}; char gen_buf[{{ 25 * pixelsize//8 }}] = {};
http://repo.or.cz/w/gfxprim.git/commit/8def3eafd3536e4ef84e3170be720a505cba5...
commit 8def3eafd3536e4ef84e3170be720a505cba5211 Author: Tomas Gavenciak gavento@ucw.cz Date: Tue Nov 22 22:26:48 2011 +0100
Fixed warning logging
fixed wrong format string and arguments
diff --git a/pylib/gfxprim/test_collection.py b/pylib/gfxprim/test_collection.py index db3b5b2..0d947ef 100644 --- a/pylib/gfxprim/test_collection.py +++ b/pylib/gfxprim/test_collection.py @@ -40,7 +40,7 @@ def find_tests(fname, suites): name, args = find_GP_directive("GP_SUITE", suite_re, l, fname=fname, line=i) if name: if args: - log.warn("suite should have no arguments other than name.", fname, i) + log.warning("%s:%s: Suite should have no arguments other than name.", fname, i) suites.setdefault(name, []) suite = name # Look for test declaration @@ -51,7 +51,7 @@ def find_tests(fname, suites): test_suite = args['suite'] if not test_suite: test_suite = 'default' - log.warn("No suite defined before test %s, using %r." % (name, test_suite), fname, i) + log.warning("%s:%s: No suite defined before test %s, using %r.", fname, i, name, test_suite) args['name'] = name args['fname'] = fname args['line'] = i @@ -68,9 +68,9 @@ def collect_suites(fdir): for fn in fnames: find_tests(os.path.join(fdir, fn), suites) if not fnames: - log.warn('No .test.c files found in "%s".', fdir) + log.warning('No .test.c files found in "%s".', fdir) if not suites: - log.warn('No suites found, generating an empty testsuite.') + log.warning('No suites found, generating an empty testsuite.') return suites
@@ -89,7 +89,7 @@ def find_GP_directive(name, regexp, l, fname='unknown', line=0): s = 'dict( ' + d[1].strip(" tn"") + ' )' args = eval(s) except: - log.fatal("error parsing arguments: %r" % s, fname, line) + log.fatal("%s:%s: error parsing arguments: %r", fname, line, s) return d[0].strip(), args return None, None
-----------------------------------------------------------------------
Summary of changes: pylib/gfxprim/test_collection.py | 10 +++++----- tests/core/GP_WritePixel.test.gen.c.t | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.