[Pkg-debile-commits] [debile-slave] 23/28: fix: coccinelle logging
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:55:22 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch master
in repository debile-slave.
commit 8eea07752938a16074b1380cc5b1b233b72e0f73
Author: Matthieu Caneill <matthieu.caneill42 at gmail.com>
Date: Thu Aug 15 23:33:18 2013 +0200
fix: coccinelle logging
---
ethel/runners/coccinelle.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/ethel/runners/coccinelle.py b/ethel/runners/coccinelle.py
index 1bd55dc..dccda97 100644
--- a/ethel/runners/coccinelle.py
+++ b/ethel/runners/coccinelle.py
@@ -12,7 +12,7 @@ def list_semantic_patches():
def coccinelle(dsc, analysis):
run_command(["dpkg-source", "-x", dsc, "source"])
with cd('source'):
- complete_out = ""
+ log = ""
failed = False
for semantic_patch in list_semantic_patches():
print(semantic_patch)
@@ -26,12 +26,15 @@ def coccinelle(dsc, analysis):
])
failed = (ret != 0) or failed
- for result in parse_coccinelle(out):
+ parsed_results = parse_coccinelle(out)
+
+ for result in parsed_results:
analysis.results.append(result)
- complete_out += out
+ log += "DEAL patch %s\n" % semantic_patch
+ log += " %d results\n" % len(parsed_results)
- return (analysis, complete_out, failed)
+ return (analysis, log, failed)
def version():
out, err, ret = run_command(["spatch", "--version"])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-slave.git
More information about the Pkg-debile-commits
mailing list