fixed kcov
authorShane Jaroch <chown_tee@proton.me>
Sat, 17 Jan 2026 12:05:23 +0000 (07:05 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 17 Jan 2026 12:05:23 +0000 (07:05 -0500)
Makefile
tests/installer-test-logic.sh

index 37907925061603fb086ab31048fc3817bcf6386d..de9dcaa2a912edd1dfbef1e0509d2f19ea92d310 100644 (file)
--- 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
index 7b0392398ea89d6a7ea2e94ddd76c050a26a0d11..5a7c47a88c1a8a2405cb07dd00ddf4bd2061acdf 100755 (executable)
@@ -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/"