From d20a77c9cf1bdba8cf003f24681503313253389b Mon Sep 17 00:00:00 2001 From: Ionel Cristian Maries Date: Sun, 28 Jun 2015 22:41:53 +0300 Subject: Make return codes consistent: 1 for no data and 2 for fail_under. Now the `report` command will properly report `No data to report` if there's no data. --- coverage/html.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coverage/html.py') diff --git a/coverage/html.py b/coverage/html.py index 9148f422..da23935d 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -126,8 +126,7 @@ class HtmlReporter(Reporter): self.index_file() self.make_local_static_report_files() - - return self.totals.pc_covered + return self.totals.n_statements and self.totals.pc_covered def make_local_static_report_files(self): """Make local instances of static files for HTML report.""" -- cgit v1.2.1