From: romeroalx Date: Fri, 11 Apr 2025 13:41:16 +0000 (+0200) Subject: gh actions: fix condition to check if coverage is enabled as suggested by @rgacogne X-Git-Tag: dnsdist-2.0.0-beta1~41^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0109fd3e1e4ef10e510d20cb87fc518b5dd0aa85;p=thirdparty%2Fpdns.git gh actions: fix condition to check if coverage is enabled as suggested by @rgacogne --- diff --git a/tasks.py b/tasks.py index 7993c8068b..97c47bb39a 100644 --- a/tasks.py +++ b/tasks.py @@ -222,7 +222,7 @@ def is_coverage_enabled(): def get_coverage(meson=False): if meson: - return '-D b_coverage=true' if os.getenv('COVERAGE') == 'yes' else '' + return '-D b_coverage=true' if is_coverage_enabled() else '' return '--enable-coverage=clang' if is_coverage_enabled() else '' @task