From d4237eec58e3982d1b8975e287f987590de4f920 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Sat, 2 Apr 2016 10:54:35 -0700 Subject: [PATCH] report on failure/success count during the job this allows somebody to kill the build in the middle, if there were any failures --- tldp/driver.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tldp/driver.py b/tldp/driver.py index 4198232..9273305 100644 --- a/tldp/driver.py +++ b/tldp/driver.py @@ -273,8 +273,10 @@ def docbuild(config, docs, **kwargs): for x, source in enumerate(docs, 1): working = source.working runner = source.doctype(source=source, output=working, config=config) - logger.info("%s (%d of %d) initiating build", - source.stem, x, len(docs)) + status = 'progress, %d failures, %d successes' + status = status % (result.count(False), result.count(True),) + logger.info("%s (%d of %d) initiating build [%s]", + source.stem, x, len(docs), status) result.append(runner.generate(**kwargs)) if all(result): buildsuccess = True