aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar kchodorow <kchodorow@google.com>2017-05-24 16:38:40 +0200
committerGravatar Irina Iancu <elenairina@google.com>2017-05-26 09:34:45 +0200
commit4521882c2e67bcc76d1b191e73ae8058995e0ef5 (patch)
tree69091f1a6cf8f5c13649f1ac99562c62c92d7a19 /src
parent507e62bc1ed4c18f957d9330de1b550e3c904637 (diff)
Add tear down for external_integration_test
For #2409. PiperOrigin-RevId: 156986600
Diffstat (limited to 'src')
-rwxr-xr-xsrc/test/shell/bazel/external_integration_test.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/shell/bazel/external_integration_test.sh b/src/test/shell/bazel/external_integration_test.sh
index c37200c6e5..4e1fcd0fec 100755
--- a/src/test/shell/bazel/external_integration_test.sh
+++ b/src/test/shell/bazel/external_integration_test.sh
@@ -24,7 +24,7 @@ source "${CURRENT_DIR}/../integration_test_setup.sh" \
source "${CURRENT_DIR}/remote_helpers.sh" \
|| { echo "remote_helpers.sh not found!" >&2; exit 1; }
-function set_up() {
+set_up() {
bazel clean --expunge >& $TEST_log
mkdir -p zoo
cat > zoo/BUILD <<EOF
@@ -47,6 +47,10 @@ public class BallPit {
EOF
}
+tear_down() {
+ shutdown_server
+}
+
function zip_up() {
repo2_zip=$TEST_TMPDIR/fox.zip
zip -0 -ry $repo2_zip WORKSPACE fox