Skip to content

Commit 6de5189

Browse files
committed
updated check counter
1 parent 3a5925c commit 6de5189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_glibc_hook.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ helper_run_hooked_podman(){
9898
missing=()
9999
for t in "${expected_entries[@]}"; do
100100
if [[ "$hooklog" == *"$t"* ]]; then
101-
((matched++))
101+
count_injections=$((count_injections+1))
102102
else
103103
missing+=("$t")
104104
fi
105105
done
106106

107107
[[ $count_injections -ge 10 ]] || {
108-
echo "Missing too many references in hook log ($matched/${#expected_entries[@]})"
108+
echo "Missing too many references in hook log ($count_injections/${#expected_entries[@]})"
109109
printf 'Missing tokens: %s\n' "${missing[@]}"
110110
echo "Log path: $HOOK_OUT"
111111
false

0 commit comments

Comments
 (0)