diff options
author | Matt Kwong <mattkwong@google.com> | 2016-09-26 12:05:05 -0700 |
---|---|---|
committer | Matt Kwong <mattkwong@google.com> | 2016-09-28 16:55:15 -0700 |
commit | 5d0f24600ef9b985bef3aada69e2f5847467c53c (patch) | |
tree | 16a8a8445fde16a15e656ae56de365c992dbc321 /test/distrib/cpp | |
parent | 46c7f574bd4a5298f09fd5d72924b93c355e357e (diff) |
changed method to local clone submodules to using git submodule foreach from the local copy
Diffstat (limited to 'test/distrib/cpp')
-rwxr-xr-x | test/distrib/cpp/run_distrib_test.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/distrib/cpp/run_distrib_test.sh b/test/distrib/cpp/run_distrib_test.sh index 6b2e043491..4c5deeaaae 100755 --- a/test/distrib/cpp/run_distrib_test.sh +++ b/test/distrib/cpp/run_distrib_test.sh @@ -31,11 +31,13 @@ set -ex git clone $EXTERNAL_GIT_ROOT -cd grpc - # clone gRPC submodules, use data from locally cloned submodules where possible -git submodule | awk -v EXTERNAL_GIT_ROOT=$EXTERNAL_GIT_ROOT/ '{ system("git \ -submodule update --init --reference " EXTERNAL_GIT_ROOT$2 " " $2) }' +(cd /var/local/jenkins/grpc / && git submodule foreach 'cd /var/local/git/grpc \ +&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \ +${name}') + + +cd grpc cd third_party/protobuf && ./autogen.sh && \ ./configure && make -j4 && make check && make install && ldconfig |