Skip to content

Commit

Permalink
Update check paths script (fixup)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Oct 3, 2023
1 parent 028774f commit 817a53b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/check-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ exactly() { # exactly N name search [mode] [filter]
num="$(grep "$mode" "$search" $filter | wc -l || true)"

if [ $num -eq $count ]; then
echo "$num $name"
echo "[1;32mOK[0m $num $name"
else
echo "$(tput setaf 9)$num $name (expecting exactly $count)$(tput sgr0)"
echo "FAIL $num $name (expecting exactly $count)"
if [ $1 -lt 30 ]; then
echo "entries:"
grep "$mode" "$search" $filter
fi
FAILED=1
fi
}
Expand Down

0 comments on commit 817a53b

Please sign in to comment.