test-documentation: Add pretty success/failure output.

This commit is contained in:
Tim Abbott 2016-10-25 11:41:12 -07:00
parent 455301ca13
commit 442f3a91e5
1 changed files with 17 additions and 0 deletions

View File

@ -17,4 +17,21 @@ cd "$(dirname "$0")"/../docs
make html
cd ../tools/documentation_crawler
echo -en "\033[0;94m"
echo "Testing links in documentation..."
echo -en "\033[0m"
set +e
scrapy crawl_with_status documentation_crawler $loglevel
result=$?
if [ "$result" = 1 ]; then
echo -en "\033[0;91m"
echo "Failed!"
echo -en "\033[0m"
exit 1
else
echo -en "\033[0;92m"
echo "Passed!"
echo -en "\033[0m"
exit 0
fi