From aadf621466651d9e94f6b8770fcec7b4baa7a3a3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 20 Jan 2017 10:56:03 -0800 Subject: [PATCH] test-backend: Only check for unrendered templates if tests passed. --- tools/test-backend | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-backend b/tools/test-backend index 5bd3bd2ce5..cf99f07c5f 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -172,7 +172,8 @@ if __name__ == "__main__": full_suite=full_suite) templates_not_rendered = test_runner.get_shallow_tested_templates() - if templates_not_rendered and full_suite: + # We only check the templates if all the tests ran and passed + if not failures and full_suite and templates_not_rendered: missed_count = len(templates_not_rendered) print("\nError: %s templates have no tests!" % (missed_count,)) for template in templates_not_rendered: