From b57bab5fc1f8fdcdb1c27082fd2e2b53f869b21b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Alvarez?= Date: Tue, 1 Jun 2010 15:20:19 -0300 Subject: [PATCH] coverage report script: Quit immediately on errors, but don't consider missing coverage_report dir when deleting it as an error --- generate_coverage_report | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate_coverage_report b/generate_coverage_report index c9707703f..492934544 100755 --- a/generate_coverage_report +++ b/generate_coverage_report @@ -1,6 +1,7 @@ #!/bin/bash +set -e make clean -rm -r coverage_report +rm -rf coverage_report make test CXXFLAGS="-Wall -Wextra -pedantic -g -fprofile-arcs -ftest-coverage" gcov lib/*.cpp -o lib/ lcov --directory ./ --capture --output-file lcov.info -b ./