Merge pull request #5083 from jtattermusch/nvm_not_found

Various fixes for node distribtest
pull/5093/head
Michael Lumish 9 years ago
commit b59b142799
  1. 6
      test/distrib/node/run_distrib_test.sh
  2. 3
      tools/run_tests/distribtest_targets.py

@ -36,17 +36,17 @@ nvm install $1
npm install -g node-static
STATIC_SERVER=localhost
STATIC_SERVER=127.0.0.1
STATIC_PORT=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_URL="http://$STATIC_SERVER:$STATIC_PORT/"
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

@ -104,7 +104,8 @@ class NodeDistribTest(object):
'tools/dockerfile/distribtest/node_%s_%s' % (
self.docker_suffix,
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))
def __str__(self):
return self.name

Loading…
Cancel
Save