fix(installer): support BusyBox coverage inventory
ci/woodpecker/pr/greenfield-install Pipeline was canceled
ci/woodpecker/pr/ci Pipeline was canceled

This commit is contained in:
2026-08-06 11:53:56 -05:00
parent d66e91b1f2
commit 58ada98d2b
5 changed files with 77 additions and 4 deletions
+10 -2
View File
@@ -69,8 +69,16 @@ case "$mode" in
trap cleanup EXIT
expected_names > "$expected_file"
find "$run_dir" -mindepth 1 -maxdepth 1 -type f -name '*.ran' -printf '%f\n' \
| sed 's/\.ran$//' | LC_ALL=C sort -u > "$actual_file"
[[ -r "$run_dir" && -x "$run_dir" ]] \
|| { echo "[fixture-suite] coverage state is not readable: $run_dir" >&2; exit 1; }
(
shopt -s nullglob dotglob
for marker in "$run_dir"/*.ran; do
[[ -f "$marker" && ! -L "$marker" ]] || continue
marker_name="${marker##*/}"
printf '%s\n' "${marker_name%.ran}"
done
) | LC_ALL=C sort -u > "$actual_file"
defined="$(wc -l < "$expected_file" | tr -d ' ')"
executed="$(wc -l < "$actual_file" | tr -d ' ')"