diff --git a/steps/tests.sh b/steps/tests.sh index fb6dc791..18cbf3c9 100755 --- a/steps/tests.sh +++ b/steps/tests.sh @@ -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 diff --git a/tests/steps/test-discover.sh b/tests/steps/test-discover.sh index e6161cb4..710d5343 100755 --- a/tests/steps/test-discover.sh +++ b/tests/steps/test-discover.sh @@ -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"