Fix workspace not empty on gce tests.

We added a gcloud command earlier in e2e.sh which creates a .config
folder in the workspace. Ignore it.
pull/6/head
Joe Finney 2015-12-11 11:33:49 -08:00
parent 8535f13a2b
commit 12c038af0c
1 changed files with 1 additions and 1 deletions

View File

@ -1142,7 +1142,7 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
# Otherwise, we want a completely empty directory.
if [[ "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; then
rm -rf kubernetes*
elif [[ $(find . | wc -l) != 1 ]]; then
elif [[ $(find . -not -path './.config*' | wc -l) != 1 ]]; then
echo $PWD not empty, bailing!
find .
exit 1