From e6546b8cb0831ce78f4079835886c05d3f47eb2a Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sat, 17 Jan 2026 07:05:23 -0500 Subject: [PATCH] fixed kcov --- Makefile | 3 +-- tests/installer-test-logic.sh | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3790792..de9dcaa 100644 --- a/Makefile +++ b/Makefile @@ -181,12 +181,11 @@ CHECK_COVERAGE = $(if $(call find_coverage_xml,$(1)), \ XML_FILE="$(call find_coverage_xml,$(1))" PATT="$(2)" FAIL_UNDER="$(3)" python3 tests/coverage_report.py, \ echo "" ; \ echo "Error: No coverage report found for $(2) in $(1)" ; \ - exit 1) + false) .PHONY: test/cov test/cov: ##H Show coverage gaps - @err=0; \ $(call CHECK_COVERAGE,$(COV_SYSTEM),git-remote-gcrypt,56) || err=1; \ $(call CHECK_COVERAGE,$(COV_INSTALL),install.sh,84) || err=1; \ exit $$err diff --git a/tests/installer-test-logic.sh b/tests/installer-test-logic.sh index 7b03923..5a7c47a 100755 --- a/tests/installer-test-logic.sh +++ b/tests/installer-test-logic.sh @@ -22,7 +22,11 @@ print_info "Running install logic tests in $SANDBOX..." ln -s "$REPO_ROOT/install.sh" "$SANDBOX/install.sh" ln -s "$REPO_ROOT/git-remote-gcrypt" "$SANDBOX/git-remote-gcrypt" ln -s "$REPO_ROOT/utils" "$SANDBOX/utils" -ln -s "$REPO_ROOT/completions" "$SANDBOX/completions" +cp -r "$REPO_ROOT/completions" "$SANDBOX/completions" +# Mock gen_docs.sh to avoid kcov tracing issues with child process +echo '#!/bin/sh' > "$SANDBOX/completions/gen_docs.sh" +echo 'exit 0' >> "$SANDBOX/completions/gen_docs.sh" +chmod +x "$SANDBOX/completions/gen_docs.sh" # Copy README as it might be edited/checked cp "$REPO_ROOT/README.rst" "$SANDBOX/" cp "$REPO_ROOT/completions/templates/README.rst.in" "$SANDBOX/" -- 2.52.0