| Index: third_party/grpc/tools/run_tests/pre_build_node.sh
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/origin-test_wsh.py b/third_party/grpc/tools/run_tests/pre_build_node.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 83%
|
| copy from third_party/WebKit/LayoutTests/http/tests/websocket/origin-test_wsh.py
|
| copy to third_party/grpc/tools/run_tests/pre_build_node.sh
|
| index 2c97ac6e4eb321cc261346d02d264b522cdbd87c..1f55df0b7bca372dec8f48c4b957c21e502a4a80
|
| --- a/third_party/WebKit/LayoutTests/http/tests/websocket/origin-test_wsh.py
|
| +++ b/third_party/grpc/tools/run_tests/pre_build_node.sh
|
| @@ -1,4 +1,7 @@
|
| -# Copyright (C) 2009 Google Inc. All rights reserved.
|
| +#!/bin/bash
|
| +
|
| +# Copyright 2015-2016, Google Inc.
|
| +# All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| # modification, are permitted provided that the following conditions are
|
| @@ -26,13 +29,16 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +NODE_VERSION=$1
|
| +source ~/.nvm/nvm.sh
|
|
|
| -from mod_pywebsocket import msgutil
|
| -
|
| +nvm use $NODE_VERSION
|
| +set -ex
|
|
|
| -def web_socket_do_extra_handshake(request):
|
| - pass # Always accept.
|
| +export GRPC_CONFIG=${CONFIG:-opt}
|
|
|
| +# Expire cache after 1 week
|
| +npm update --cache-min 604800
|
|
|
| -def web_socket_transfer_data(request):
|
| - msgutil.send_message(request, request.ws_origin)
|
| +npm install node-gyp-install
|
| +./node_modules/.bin/node-gyp-install
|
|
|