aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/performance/remote_host_prepare.sh
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2018-02-01 15:00:03 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2018-02-01 15:00:03 -0800
commit64d02bac04be2d33bad51f2f335ff85fd2bea91c (patch)
tree6352edcc98cf2ad26235af0184cda0cd87393756 /tools/run_tests/performance/remote_host_prepare.sh
parente53d6b3f6034a5bbf72e3ad4438f834191235323 (diff)
parentac47595e42036585a9d9465ba28615d3e4626b13 (diff)
Merge branch 'master' of github.com:grpc/grpc into dns_cooldown
Diffstat (limited to 'tools/run_tests/performance/remote_host_prepare.sh')
-rwxr-xr-xtools/run_tests/performance/remote_host_prepare.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/run_tests/performance/remote_host_prepare.sh b/tools/run_tests/performance/remote_host_prepare.sh
index bf91acbddf..d69c85b40e 100755
--- a/tools/run_tests/performance/remote_host_prepare.sh
+++ b/tools/run_tests/performance/remote_host_prepare.sh
@@ -15,7 +15,7 @@
set -ex
-cd $(dirname $0)/../../..
+cd "$(dirname "$0")/../../.."
# TODO(jtattermusch): To be sure there are no running processes that would
# mess with the results, be rough and reboot the slave here
@@ -24,7 +24,7 @@ ssh "${USER_AT_HOST}" "killall -9 qps_worker dotnet mono node ruby worker || tru
# On Windows, killall is not supported & we need to kill all pending workers
# before attempting to delete the workspace
-ssh "${USER_AT_HOST}" "ps -e | egrep 'qps_worker|dotnet' | awk '{print $1}' | xargs kill -9 || true"
+ssh "${USER_AT_HOST}" "ps -e | egrep 'qps_worker|dotnet' | awk '{print \$1}' | xargs kill -9 || true"
# cleanup after previous builds
ssh "${USER_AT_HOST}" "rm -rf ~/performance_workspace && mkdir -p ~/performance_workspace"
@@ -36,4 +36,5 @@ scp ../grpc.tar "${USER_AT_HOST}:~/performance_workspace"
ssh "${USER_AT_HOST}" "tar -xf ~/performance_workspace/grpc.tar -C ~/performance_workspace || tar -xf ~/performance_workspace/grpc.tar -C ~/performance_workspace"
# For consistency with local run, invoke the kill_workers script remotely.
+# shellcheck disable=SC2088
ssh "${USER_AT_HOST}" "~/performance_workspace/grpc/tools/run_tests/performance/kill_workers.sh"