[Pkg-debile-commits] [debile-slave] 66/100: fixing up the cppchecker

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:53:10 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 2b1999cb223e7c01d13a116454bddbc67fc44961
Author: Paul Tagliamonte <tag at pault.ag>
Date:   Sun Jun 9 00:05:48 2013 -0400

    fixing up the cppchecker
---
 ethel/runners/cppcheck.py |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/ethel/runners/cppcheck.py b/ethel/runners/cppcheck.py
index a702900..7675d90 100644
--- a/ethel/runners/cppcheck.py
+++ b/ethel/runners/cppcheck.py
@@ -10,12 +10,17 @@ def cppcheck(dsc, analysis):
             'cppcheck', '--enable=all', '.', '--xml'
         ])
 
+        xmlbytes = err.encode()
+
         failed = False
-        for issue in parse_cppcheck(out):
+        if err.strip() == '':
+            return (analysis, err, failed)
+
+        for issue in parse_cppcheck(xmlbytes):
             analysis.results.append(issue)
             if not failed and issue.severity in [
                 'performance', 'portability', 'error', 'warning'
             ]:
                 failed = True
 
-        return (analysis, out, failed)
+        return (analysis, err, failed)

-- 
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