From cdf646feb8ab7195c0fc9bc3bdf2ac999c2097fb Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 19 Aug 2024 06:36:35 +0100 Subject: [PATCH] ci: ubuntu: fix coverage unittests by patching/updating lcov Hack for https://github.com/linux-test-project/lcov/issues/245. I tried to backport https://github.com/linux-test-project/lcov/commit/bf135caf5f626e02191c42bd2773e08a0bb9b7e5 but had no luck (worked in one container but didn'y apply in another, whatever). This fixes the coverage unittests. >=lcov-2.1-beta works fine. The beta has landed in a beta version of Ubuntu too. Bug: https://github.com/linux-test-project/lcov/issues/245 --- ci/ciimage/ubuntu-rolling/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/ciimage/ubuntu-rolling/install.sh b/ci/ciimage/ubuntu-rolling/install.sh index b811fde47e7d..1706d837dc00 100755 --- a/ci/ciimage/ubuntu-rolling/install.sh +++ b/ci/ciimage/ubuntu-rolling/install.sh @@ -82,6 +82,13 @@ cp LICENSE /usr/share/doc/zig cd .. rm -rf "$ZIG_BASE" +# Hack for https://github.com/linux-test-project/lcov/issues/245 +# https://github.com/linux-test-project/lcov/commit/bf135caf5f626e02191c42bd2773e08a0bb9b7e5 +# XXX: Drop this once Ubuntu has lcov-2.1* +git clone https://github.com/linux-test-project/lcov +cd lcov +make install + # cleanup apt-get -y clean apt-get -y autoclean