fix(installer): support BusyBox coverage inventory
This commit is contained in:
@@ -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 ' ')"
|
||||
|
||||
Reference in New Issue
Block a user