test-backend: Only check for unrendered templates if tests passed.

This commit is contained in:
Tim Abbott 2017-01-20 10:56:03 -08:00
parent cc13104780
commit aadf621466
1 changed files with 2 additions and 1 deletions

View File

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