From ce237c14160ba38b620e1b37aa887168afcb7ff5 Mon Sep 17 00:00:00 2001 From: Jeffrey Regan Date: Wed, 16 May 2018 13:50:24 -0700 Subject: [PATCH] more logging --- demos/integration_tests.sh | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/demos/integration_tests.sh b/demos/integration_tests.sh index 179110918..cc9ab3a44 100755 --- a/demos/integration_tests.sh +++ b/demos/integration_tests.sh @@ -15,28 +15,37 @@ # limitations under the License. -# This script is run periodically by kubernetes test-infra. +# This script is run periodically by kubernetes +# test-infra. # -# It's meant to use kustomized configurations against a live cluster. +# It uses kustomized configurations in a live cluster, +# to assure that the generated configs work as +# expected. +# +# This script assumes that the process running it has +# checked out the kubernetes-sigs/kustomize repo, and +# has cd'ed into it (i.e. the directory above "demos") +# before running it. # # At time of writing, its 'call point' was in # https://github.com/kubernetes/test-infra/blob/master/jobs/config.json -# -# The script is written to assume that the process running it -# has checked out kubernetes-sigs/kustomize repo, and has -# changed the current directory to function exit_with { local msg=$1 echo >&2 ${msg} exit 1 } +export -f exit_with repo=kubernetes-sigs/kustomize if [[ `pwd` != */$repo ]]; then exit_with "Script must be run from $repo" fi +echo pwd is `pwd` +echo GOPATH is $GOPATH +echo PATH is $PATH + go install . || \ { exit_with "Failed to install kustomize."; }