| Index: third_party/grpc/tools/jenkins/docker_run_tests.sh
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py b/third_party/grpc/tools/jenkins/docker_run_tests.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 60%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
|
| copy to third_party/grpc/tools/jenkins/docker_run_tests.sh
|
| index 1b02d66267e294ce83977dac64f075981705647c..8d6c42cd9bf4710524eb025456b455a8892c2c67
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
|
| +++ b/third_party/grpc/tools/jenkins/docker_run_tests.sh
|
| @@ -1,4 +1,5 @@
|
| -# Copyright 2011, Google Inc.
|
| +#!/bin/bash
|
| +# Copyright 2015-2016, Google Inc.
|
| # All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| @@ -26,28 +27,41 @@
|
| # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +#
|
| +# This script is invoked by build_docker_and_run_tests.sh inside a docker
|
| +# container. You should never need to call this script on your own.
|
| +
|
| +set -e
|
| +
|
| +export CONFIG=$config
|
| +export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.5
|
| +
|
| +# Ensure that programs depending on current-user-ownership of cache directories
|
| +# are satisfied (it's being mounted from outside the image).
|
| +chown $(whoami) $XDG_CACHE_HOME
|
|
|
| +mkdir -p /var/local/git
|
| +git clone --recursive /var/local/jenkins/grpc /var/local/git/grpc
|
|
|
| -import logging
|
| -_GOODBYE_MESSAGE = u'Goodbye'
|
| +mkdir -p reports
|
|
|
| +$POST_GIT_STEP
|
|
|
| -def web_socket_do_extra_handshake(request):
|
| - pass # Always accept.
|
| +exit_code=0
|
|
|
| +$RUN_TESTS_COMMAND || exit_code=$?
|
|
|
| -def web_socket_transfer_data(request):
|
| - while True:
|
| - line = request.ws_stream.receive_message()
|
| - if line is None:
|
| - return
|
| - if isinstance(line, unicode):
|
| - request.ws_stream.send_message(line, binary=False)
|
| - if line == _GOODBYE_MESSAGE:
|
| - return
|
| - else:
|
| - request.ws_stream.send_message(line, binary=True)
|
| +cd reports
|
| +echo '<html><head></head><body>' > index.html
|
| +find . -maxdepth 1 -mindepth 1 -type d | sort | while read d ; do
|
| + d=${d#*/}
|
| + n=${d//_/ }
|
| + echo "<a href='$d/index.html'>$n</a><br />" >> index.html
|
| +done
|
| +echo '</body></html>' >> index.html
|
| +cd ..
|
|
|
| +zip -r reports.zip reports
|
| +find . -name report.xml | xargs zip reports.zip
|
|
|
| -def web_socket_passive_closing_handshake(request):
|
| - return request.ws_close_code, request.ws_close_reason
|
| +exit $exit_code
|
|
|