Merge pull request #8355 from jtattermusch/better_workspace_clone_backport

Save time when creating matrix workspaces on win and mac
pull/8366/head
matt-kwong 8 years ago committed by GitHub
commit 14a7f35ec0
  1. 8
      tools/run_tests/run_tests_in_workspace.sh

@ -35,11 +35,13 @@
set -ex set -ex
cd $(dirname $0)/../.. cd $(dirname $0)/../..
export repo_root=$(pwd)
rm -rf "${WORKSPACE_NAME}" rm -rf "${WORKSPACE_NAME}"
# TODO(jtattermusch): clone --recursive fetches the submodules from github. git clone . "${WORKSPACE_NAME}"
# Try avoiding that to save time and network capacity. # clone gRPC submodules, use data from locally cloned submodules where possible
git clone --recursive . "${WORKSPACE_NAME}" git submodule foreach 'cd "${repo_root}/${WORKSPACE_NAME}" \
&& git submodule update --init --reference ${repo_root}/${name} ${name}'
echo "Running run_tests.py in workspace ${WORKSPACE_NAME}" echo "Running run_tests.py in workspace ${WORKSPACE_NAME}"
python "${WORKSPACE_NAME}/tools/run_tests/run_tests.py" $@ python "${WORKSPACE_NAME}/tools/run_tests/run_tests.py" $@

Loading…
Cancel
Save