From 754061f3ae52eccd5e0a9fe87e287f02fa256c20 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Thu, 29 Oct 2015 16:40:20 -0700 Subject: [PATCH] tools: update npm test tooling for 3.3.10+ PR-URL: https://github.com/nodejs/node/pull/3599 Reviewed-By: Jeremiah Senkpiel --- tools/test-npm.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/test-npm.sh b/tools/test-npm.sh index 9cb5a80100352e..51a2a5225a6929 100755 --- a/tools/test-npm.sh +++ b/tools/test-npm.sh @@ -30,11 +30,14 @@ export npm_config_tmp="$(pwd)/npm-tmp" # ensure npm always uses the local node export PATH="$(../$NODE -p 'require("path").resolve("..")'):$PATH" +unset NODE +# make sure the binaries from the non-dev-deps are available +node cli.js rebuild # install npm devDependencies and run npm's tests -../$NODE cli.js install --ignore-scripts -../$NODE test/run.js -../$NODE cli.js run-script tap -- "test/tap/*.js" +node cli.js install --ignore-scripts +# run the tests +node cli.js run-script test-node # clean up everything one single shot cd .. && rm -rf test-npm