simpler check

This commit is contained in:
Thomas Levine 2016-04-04 21:29:51 +00:00
parent ddb74d43d8
commit 16988c48a9
1 changed files with 2 additions and 2 deletions

4
urchin
View File

@ -695,10 +695,10 @@ main() {
done < "${test_arg_list}"
finish=$(date +%s)
test $(cat "${urchin_tmp}"/log | wc -l) -gt 0 || {
if test $(cat "${urchin_tmp}"/log | wc -l) -eq 0; then
echo 'No tests found' > /dev/stderr
urchin_exit 1
}
fi
report_outcome "${root}" "${tap_format}" "${urchin_tmp}"/log "${start}" \
"${finish}"