|
|
|
@ -42,14 +42,16 @@ if make test-ci > "$root/.test/results" 2>&1; then
|
|
|
|
|
grep 'Done fetching communities' -A1 --color=no "$root/.test/results";
|
|
|
|
|
grep -E 'Generated [[:digit:]]+ listings' -B1 --color=no "$root/.test/results";
|
|
|
|
|
cat <<EOF
|
|
|
|
|
Tests passed.
|
|
|
|
|
|
|
|
|
|
\033[32mTests passed.\033[0m
|
|
|
|
|
Run \`make test\` to test the webpage yourself.
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
else
|
|
|
|
|
# Show end of output if tests were not successful.
|
|
|
|
|
printf "\033[31mTests failed.\033[0m";
|
|
|
|
|
printf "\033[31mTests failed.\033[0m\n";
|
|
|
|
|
tail -n10 "$root/.test/results";
|
|
|
|
|
echo "See $root/.test/results for the full log."
|
|
|
|
|
printf "\nSee %s/.test/results for the full log.\n" "$root"
|
|
|
|
|
exit 1;
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|