diff options
author | 2017-12-15 13:38:59 -0800 | |
---|---|---|
committer | 2017-12-15 13:38:59 -0800 | |
commit | 290bbd2111fb7069c89cd154965a4dc78b63c95f (patch) | |
tree | 321b8ccedf0f56add2aae5e2dd7107906b597698 /tools | |
parent | af3eb698566ab6a53a9b23bd6390f86dc772af67 (diff) |
Fix run_tests_in_workspace.sh to pass shellcheck
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/helper_scripts/run_tests_in_workspace.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/run_tests/helper_scripts/run_tests_in_workspace.sh b/tools/run_tests/helper_scripts/run_tests_in_workspace.sh index 529dc0444a..790c041881 100755 --- a/tools/run_tests/helper_scripts/run_tests_in_workspace.sh +++ b/tools/run_tests/helper_scripts/run_tests_in_workspace.sh @@ -19,15 +19,15 @@ # newly created workspace) set -ex -cd $(dirname $0)/../../.. -export repo_root=$(pwd) +cd "$(dirname "$0")/../../.." +export repo_root="$(pwd)" rm -rf "${WORKSPACE_NAME}" git clone . "${WORKSPACE_NAME}" # clone gRPC submodules, use data from locally cloned submodules where possible +# shellcheck disable=SC2016,SC1004 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}" -python "${WORKSPACE_NAME}/tools/run_tests/run_tests.py" $@ - +python "${WORKSPACE_NAME}/tools/run_tests/run_tests.py" "$@" |