Skip to content

Commit

Permalink
#185 test for non-emptiness
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 4, 2024
1 parent 5410199 commit 325aa2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions steps/tests.sh
Expand Up @@ -50,6 +50,7 @@ find "${LOCAL}/tests" -type f -name '*.sh' | sort | while IFS= read -r test; do
if ! TARGET="${tgt}" "${test}" "${t}" "${stdout}"; then
cat "${stdout}"
echo "❌ Non-zero exit code (TARGET=${tgt})"
echo "You can run this particular test in isolation: make test TEST=${name}"
exit 1
fi
done
2 changes: 1 addition & 1 deletion tests/steps/test-discover.sh
Expand Up @@ -31,7 +31,7 @@ csv=${TARGET}/repositories.csv
rm -f "${csv}"
TOTAL=3 "${LOCAL}/steps/discover.sh"
test -e "${csv}"
test -e "${TARGET}/temp/repo-details.tex"
test -s "${TARGET}/temp/repo-details.tex"
test "$(wc -l < "${csv}" | xargs)" = '4'
} > "${stdout}" 2>&1
echo "👍🏻 A few repositories discovered correctly"
Expand Down

0 comments on commit 325aa2e

Please sign in to comment.