diff options
author | Eric Anderson <ejona@google.com> | 2015-02-17 13:46:09 -0800 |
---|---|---|
committer | Eric Anderson <ejona@google.com> | 2015-02-17 13:46:09 -0800 |
commit | 31179ec9950140b8d18883c9c9525d4799e5edd6 (patch) | |
tree | 751f4da5b3bc69fc714a2e3953463a5acb403003 /run-test-client.sh | |
parent | 5d37b29ef88db7e162d594b61808f612e0200c29 (diff) | |
download | grpc-grpc-java-31179ec9950140b8d18883c9c9525d4799e5edd6.tar.gz |
Allow running test scripts from any directory
This was actually a feature lost when swapping to Gradle, and is used by
the grpc/java Dockerfile. But it is useful in general.
Diffstat (limited to 'run-test-client.sh')
-rwxr-xr-x | run-test-client.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/run-test-client.sh b/run-test-client.sh index 09c922332..4f86d3bcd 100755 --- a/run-test-client.sh +++ b/run-test-client.sh @@ -8,5 +8,6 @@ for i in "$@"; do done TARGET_ARGS="${TARGET_ARGS:2}" +cd "$(dirname "$(readlink -f "$0")")" echo "[INFO] Running: $TARGET ($TARGET_CLASS $TARGET_ARGS)" ./gradlew -PmainClass="$TARGET_CLASS" -PappArgs="[$TARGET_ARGS]" :grpc-integration-testing:execute |