From: Alfredo Deza Date: Wed, 6 Jan 2016 19:18:49 +0000 (-0500) Subject: do not start with a newline when creating the xml X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2ebfe9d7bd0e039a901c73bd2d792c7b8ac2ccc;p=ceph-build.git do not start with a newline when creating the xml Signed-off-by: Alfredo Deza --- diff --git a/ceph-pr-commits/build/build b/ceph-pr-commits/build/build index 7c737334..8213bfc5 100644 --- a/ceph-pr-commits/build/build +++ b/ceph-pr-commits/build/build @@ -25,10 +25,9 @@ def produce_junit(**kw): time = kw.get('time', 0) tests = kw.get('tests', []) failures = kw.get('failures', []) - total_tests = len(tests) + total_tests = len(tests) or 1 total_failures = len(failures) - template = """ - + template = """ """.format(total_failures=total_failures, total_tests=total_tests)