From b71f47acb89bd69ab204e9b8f550a2690087dfdc Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 22 Feb 2014 20:14:26 -0800 Subject: [PATCH] t/coverage.sh: Fall-back to lcov without --no-external. Old versions of lcov don't support that flag. Simply try to fall back in case the first run fails. --- t/coverage.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/coverage.sh b/t/coverage.sh index 5dabb13..29f8c99 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -46,8 +46,11 @@ make lcov --base-directory src --directory src --zerocount make test +# old versions of lcov don't support --no-external lcov --base-directory src --directory src --no-external \ - --capture -o sysdb_coverage.info + --capture -o sysdb_coverage.info \ + || lcov --base-directory src --directory src \ + --capture -o sysdb_coverage.info V=$( ./version-gen.sh ) genhtml -o "$srcdir"/t/coverage \ -- 2.30.2