Uh oh!
There was an error while loading. Please reload this page.
tools?: refactor test-npm into shell script - #1662
Conversation
There was a problem hiding this comment.
perhaps this stanza could be improved, but I'm not so sure how?
There was a problem hiding this comment.
As a script, if I'm not mistaken you can just export npm_config_cache="bloo-blee-bloo" and it won't affect the outer environment. Then you can un-chain the cli runs, since set -e is enabled.
There was a problem hiding this comment.
As a script, if I'm not mistaken you can just
export npm_config_cache="bloo-blee-bloo"and it won't affect the outer environment.
Ok, not sure if this is the best to check but make test-npm && printenv didn't see anything new.
Then you can un-chain the cli runs, since
set -eis enabled.
I don't think I understand, why wouldn't that work without set -e?
7dea3b6 to
5a8fd8aComparejbergstroem
commented
May 11, 2015
Shell script looks good to me. Quick question, the output of |
Fishrock123
commented
May 11, 2015
Those could be some good next steps, yes. Currently it just prints out everything that Some of it is already (parsed) tap output, the rest could probably be tap-ified on npm's end. |
Fishrock123
commented
May 11, 2015
@jbergstroem actually that might just be npm installing it's devDependencies. I'll take a look tomorrow. |
jbergstroem
commented
May 11, 2015
@Fishrock123 also, I seem to get these artefacts as a result of ..that userconfig looks like a bug? |
Fishrock123
commented
May 11, 2015
@jbergstroem currently, yes. This patch resolves that, please try it. :) (userconfig is just a shortcoming in npm's tests..) |
jbergstroem
commented
May 11, 2015
@Fishrock123 ah, I probably didn't pull your latest update. I'll try again. Edit: Typo in checkout.. see above ( |
evanlucas
commented
May 11, 2015
LGTM |
5a8fd8a to
5bf6c87CompareFishrock123
commented
May 11, 2015
Updated the NODE_EXE check to |
Fishrock123
commented
May 12, 2015
I can't seem to call the script by itself with a NODE_EXE and have it work, any idea why running it from make works, but without doesn't? |
jbergstroem
commented
May 12, 2015
@Fishrock123 works for me: $ NODE_EXE=./iojs tools/test-npm.sh
npm WARN prefer global marked@0.3.3 should be installed with -g
npm WARN engine follow@0.11.4: wanted: {"node":"0.10.x || 0.8.x"} (current: {"node":"2.0.1","npm":"2.9.0"})
require-inject@1.2.0 node_modules/require-inject
<snip> |
Fishrock123
commented
May 12, 2015
Doh. I was trying to do NODE_EXE=./node without thinking about it. >_< |
Extracts test-npm from Makefile and puts it in tools/test-npm.sh Also improves test-npm to use a separate copy of deps/npm for testing. PR-URL: nodejs#1662 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Evan Lucas <evanlucas@me.com>
5bf6c87 to
0b21ab1CompareFishrock123
commented
May 12, 2015
Fixes #1549 |
Extracts test-npm from Makefile and puts it in tools/test-npm.sh Also improves test-npm to use a separate copy of deps/npm for testing. PR-URL: nodejs#1662 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Evan Lucas <evanlucas@me.com>
As suggested, test-npm now resides in a separate script file, and makes a copy of deps/npm to run the tests on.
R=@othiym23 / @iojs/build / @evanlucas