mirror of https://github.com/grpc/grpc-java.git
Avoid interop build instructions when already built
This reduces the amount of logspam generated during interop testing. Telling someone how to build when they have already obviously built doesn't serve much purpose, now that everyone is used to it not building automatically.
This commit is contained in:
parent
5362017c5a
commit
fab303b26e
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
cat >&2 <<EOF
|
BIN="./interop-testing/build/install/grpc-interop-testing/bin/test-client"
|
||||||
Gradle is no longer run automatically. Make sure to run
|
if [[ ! -e "$BIN" ]]; then
|
||||||
'./gradlew installDist -PskipCodegen=true' or
|
cat >&2 <<EOF
|
||||||
'./gradlew :grpc-interop-testing:installDist -PskipCodegen=true' after any
|
Could not find binary. It can be built with:
|
||||||
changes. -PskipCodegen=true is optional, but requires less setup.
|
./gradlew :grpc-interop-testing:installDist -PskipCodegen=true
|
||||||
EOF
|
EOF
|
||||||
exec ./interop-testing/build/install/grpc-interop-testing/bin/test-client "$@"
|
exit 1
|
||||||
|
fi
|
||||||
|
exec "$BIN" "$@"
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
cat >&2 <<EOF
|
BIN="./interop-testing/build/install/grpc-interop-testing/bin/test-server"
|
||||||
Gradle is no longer run automatically. Make sure to run
|
if [[ ! -e "$BIN" ]]; then
|
||||||
'./gradlew installDist -PskipCodegen=true' or
|
cat >&2 <<EOF
|
||||||
'./gradlew :grpc-interop-testing:installDist -PskipCodegen=true' after any
|
Could not find binary. It can be built with:
|
||||||
changes. -PskipCodegen=true is optional, but requires less setup.
|
./gradlew :grpc-interop-testing:installDist -PskipCodegen=true
|
||||||
EOF
|
EOF
|
||||||
exec ./interop-testing/build/install/grpc-interop-testing/bin/test-server "$@"
|
exit 1
|
||||||
|
fi
|
||||||
|
exec "$BIN" "$@"
|
||||||
|
|
Loading…
Reference in New Issue