Skip to content

Commit

Permalink
Make test_verify_urls test easier to debug.
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 426360755
  • Loading branch information
philwo authored and copybara-github committed Feb 4, 2022
1 parent 855107c commit 938e209
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/shell/bazel/verify_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ function test_verify_urls() {
for url in $(grep -E '"https://|http://' "${file}" | \
sed -e '/jekyll-tree/d' -e '/^#/d' -r -e 's#^.*"(https?://[^"]+)".*$#\1#g' | \
sort -u); do
#echo "Checking ${url}"
if ! curl --head -silent --fail --output /dev/null --retry 3 "${url}"; then
#fail "URL ${url} is invalid."
echo "Checking ${url} ..."
if ! curl --head --silent --show-error --fail --output /dev/null --retry 3 "${url}"; then
invalid_urls+=("${url}")
fi
done
Expand Down

0 comments on commit 938e209

Please sign in to comment.