Skip to content

Commit

Permalink
kokora: checkout matching grpc/grpc branch for xds test (#3459)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgribkoff committed Mar 13, 2020
1 parent 83ff975 commit 84c29a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/kokoro/xds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ cd github

export GOPATH="${HOME}/gopath"
pushd grpc-go/interop/xds/client
branch=$(git branch --all --no-color --contains "${KOKORO_GITHUB_COMMIT}" \
| grep -v HEAD | head -1)
shopt -s extglob
branch="${branch//[[:space:]]}"
branch="${branch##remotes/origin/}"
shopt -u extglob
go build
popd

git clone https://github.com/grpc/grpc.git
git clone -b "${branch}" https://github.com/grpc/grpc.git

grpc/tools/run_tests/helper_scripts/prep_xds.sh
GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info \
Expand Down

0 comments on commit 84c29a7

Please sign in to comment.