Fix submodule handling in dockerized tests

pull/14504/head v1.10.0-pre1
Mehrdad Afshari 7 years ago
parent deae9d8563
commit 5b0685b6c2
  1. 1
      tools/run_tests/dockerize/docker_run.sh
  2. 5
      tools/run_tests/dockerize/docker_run_tests.sh

@ -26,6 +26,7 @@ then
# TODO: figure out a way to eliminate this following shellcheck suppressions
# shellcheck disable=SC2016,SC1004
(cd "${EXTERNAL_GIT_ROOT}" && git submodule foreach 'git clone ${EXTERNAL_GIT_ROOT}/${name} /var/local/git/grpc/${name}')
(cd /var/local/git/grpc && git submodule init)
else
mkdir -p "/var/local/git/grpc/$RELATIVE_COPY_PATH"
cp -r "$EXTERNAL_GIT_ROOT/$RELATIVE_COPY_PATH"/* "/var/local/git/grpc/$RELATIVE_COPY_PATH"

@ -26,8 +26,9 @@ mkdir -p /var/local/git
git clone /var/local/jenkins/grpc /var/local/git/grpc
# clone gRPC submodules, use data from locally cloned submodules where possible
# TODO: figure out a way to eliminate this shellcheck suppression:
# shellcheck disable=SC2016,SC1004
(cd /var/local/jenkins/grpc/ && git submodule foreach 'git clone /var/local/jenkins/grpc/{$name} /var/local/jenkins/grpc/${name}')
# shellcheck disable=SC2016
(cd /var/local/jenkins/grpc/ && git submodule foreach 'git clone /var/local/jenkins/grpc/${name} /var/local/git/grpc/${name}')
(cd /var/local/git/grpc/ && git submodule init)
mkdir -p reports

Loading…
Cancel
Save