Skip to content
Snippets Groups Projects
Commit ee7a88c7 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix note distribtest nvm problem

parent 29cc1e46
No related branches found
No related tags found
No related merge requests found
...@@ -36,17 +36,17 @@ nvm install $1 ...@@ -36,17 +36,17 @@ nvm install $1
npm install -g node-static npm install -g node-static
STATIC_SERVER=localhost STATIC_SERVER=127.0.0.1
STATIC_PORT=8080 STATIC_PORT=8080
# Serves the input_artifacts directory statically at localhost:8080 # Serves the input_artifacts directory statically at localhost:8080
static "$EXTERNAL_GIT_ROOT/input_artifacts" -a STATIC_SERVER -p STATIC_PORT & static "$EXTERNAL_GIT_ROOT/input_artifacts" -a $STATIC_SERVER -p $STATIC_PORT &
STATIC_PID=$! STATIC_PID=$!
STATIC_URL="http://$STATIC_SERVER:$STATIC_PORT/" STATIC_URL="http://$STATIC_SERVER:$STATIC_PORT/"
npm install --unsafe-perm $STATIC_URL/grpc.tgz --grpc_node_binary_host_mirror=$STATIC_URL npm install --unsafe-perm $STATIC_URL/grpc.tgz --grpc_node_binary_host_mirror=$STATIC_URL
kill $STATIC_PID kill -9 $STATIC_PID
./distrib_test.js ./distrib_test.js
...@@ -104,7 +104,8 @@ class NodeDistribTest(object): ...@@ -104,7 +104,8 @@ class NodeDistribTest(object):
'tools/dockerfile/distribtest/node_%s_%s' % ( 'tools/dockerfile/distribtest/node_%s_%s' % (
self.docker_suffix, self.docker_suffix,
self.arch), self.arch),
'test/distrib/node/run_distrib_test.sh %s' % ( # bash -l needed to make nvm available
'bash -l test/distrib/node/run_distrib_test.sh %s' % (
self.node_version)) self.node_version))
def __str__(self): def __str__(self):
return self.name return self.name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment