Skip to content

Commit

Permalink
#285 better log
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 21, 2024
1 parent 8a5047d commit 9411f82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/steps/test-filter.sh
Expand Up @@ -59,7 +59,12 @@ echo "👍🏻 A simple filtering ran smoothly"
echo "broken code совсем" > "${broken}"
msg=$("${LOCAL}/steps/filter.sh")
echo "${msg}"
test "$(echo "${msg}" | grep -c "didn't touch any files")" = 0
if [ ! "$(echo "${msg}" | grep -c "didn't touch any files")" -eq 0 ]; then
echo "One of the filters didn't do anything, which is wrong."
echo "This test is designed to trigger all available filters, without exception."
echo "If you add a new filter to the filters/ directory, make sure it is triggered here too."
exit 1
fi
test ! -e "${broken}"
test ! -e "${interface}"
} > "${stdout}" 2>&1
Expand Down

0 comments on commit 9411f82

Please sign in to comment.