From 133f00bccf547e69e3efff77a6ecbb276c33f039 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Fri, 9 Oct 2015 17:33:59 -0700 Subject: [PATCH] test: update test-npm to work with npm 3 --- tools/test-npm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test-npm.sh b/tools/test-npm.sh index 62929ee8ccc94f..47b64c9ea089b0 100755 --- a/tools/test-npm.sh +++ b/tools/test-npm.sh @@ -29,10 +29,10 @@ export npm_config_prefix="npm-prefix" export npm_config_tmp="npm-tmp" # install npm devDependencies and run npm's tests - -../$NODE cli.js install --ignore-scripts -../$NODE cli.js run-script test-legacy -../$NODE cli.js run-script test +NODEPATH="$(../$NODE -p 'require("path").resolve("..")')" +PATH="$NODEPATH:$PATH" ../$NODE cli.js install --ignore-scripts +PATH="$NODEPATH:$PATH" ../$NODE test/run.js +PATH="$NODEPATH:$PATH" ../$NODE cli.js run-script tap -- "test/tap/*.js" # clean up everything one single shot cd .. && rm -rf test-npm