Make node E2E tests more transparent

This commit is contained in:
Paul Morie
2016-09-19 23:08:24 -04:00
parent cfecc2fa72
commit 3539993ee0
6 changed files with 145 additions and 92 deletions

View File

@@ -141,8 +141,9 @@ if [ $remote = true ] ; then
exit $?
else
# Refresh sudo credentials if not running on GCE.
# Refresh sudo credentials for local run
if ! ping -c 1 -q metadata.google.internal &> /dev/null; then
echo "Updating sudo credentials"
sudo -v || exit 1
fi