From 39a8c829575f4762104d1a58b27aa568807bf2d3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 15 Jun 2016 15:05:07 -0700 Subject: [PATCH] travis: Remove verbose coverage report from end of build output. --- tools/test-backend | 8 ++++++-- tools/travis/backend | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/test-backend b/tools/test-backend index e2755bab57..c2ff7ccd70 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -33,6 +33,9 @@ if __name__ == "__main__": parser.add_option('--coverage', dest='coverage', action="store_true", default=False, help='Compute test coverage.') + parser.add_option('--no-verbose-coverage', dest='verbose_coverage', + action="store_false", + default=True, help='Disable verbose print of coverage report.') parser.add_option('--profile', dest='profile', action="store_true", default=False, help='Profile test runtime.') @@ -82,8 +85,9 @@ if __name__ == "__main__": if options.coverage: cov.stop() cov.save() - print("Printing coverage data") - cov.report(show_missing=False) + if options.verbose_coverage: + print("Printing coverage data") + cov.report(show_missing=False) cov.html_report() print("HTML report saved to htmlcov/") if options.profile: diff --git a/tools/travis/backend b/tools/travis/backend index f815aac172..2a58ac4087 100755 --- a/tools/travis/backend +++ b/tools/travis/backend @@ -4,7 +4,7 @@ set -x source /srv/zulip-venv/bin/activate export PATH=$PATH:/srv/zulip-venv/bin ./tools/lint-all -./tools/test-backend --coverage +./tools/test-backend --coverage --no-verbose-coverage ./tools/test-management ./tools/test-migrations ./tools/test-run-dev