node/tools
Rich Trott ac3deb1481
tools: remove NODE_PATH from environment for tests
Unset NODE_PATH environment variable when running tests.

On Ubuntu 16.04, some users experience test failures due to internal
libraries being installed in /usr/lib/nodejs/internal and NODE_PATH
including /usr/lib/nodejs. Tests that expect internal libraries to be
off limits without the --expose-internals flag will fail in this
situation. Currently, those tests are test/parallel/test-repl.js and
test/parallel/test-internal-modules.js.

This situation seems to (probably) be caused by some
not-entirely-uncommon package that gets installed.

Regardless, tests should ignore the user's NODE_PATH. (NODE_PATH is
tested in test/parallel/test-module-globalpaths-nodepath.js and
test/parallel/test-require-dot.js.)

PR-URL: https://github.com/nodejs/node/pull/11612
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Refs: https://twitter.com/trott/status/835729396900061184
2017-03-05 23:24:50 +01:00
..
configure.d tools: remove unnecessary imports and assignments 2016-07-08 20:17:08 +05:30
doc doc: change broken fg(1) links to fg(1p) 2017-02-24 02:46:33 +01:00
eslint eslint: remove dangling eslint symlink 2017-01-30 12:08:43 -05:00
eslint-rules tools,test: enforce assert.ifError with lint rule 2017-01-30 12:08:37 -05:00
gyp tools: add compile_commands.json gyp generator 2017-02-14 11:52:26 -05:00
icu deps: Intl: ICU 58 bump: configure/LICENSE/docs 2016-11-03 05:32:07 -05:00
msvs win,msi: add required UIRef for localized strings 2016-12-20 12:04:59 -05:00
osx-pkg.pmdoc build: fix .pkg creation tooling 2015-09-06 21:38:09 +10:00
pkgsrc
rpm tools: add --prof-process flag to node binary 2015-12-08 02:00:46 +01:00
certdata.txt tools: update certdata.txt 2016-06-23 09:24:16 +02:00
check-imports.py tools: rewrite check-install.sh in python 2016-04-25 19:22:50 +05:30
compress_json.py src: add /json/protocol endpoint to inspector 2016-09-29 11:14:48 -07:00
cpplint.py tools: allow cpplint to run outside git repo 2016-06-28 21:21:21 +02:00
create_android_makefiles build: add script to create Android .mk files 2016-03-22 19:17:28 +01:00
create_expfile.sh build: fix dependencies on AIX 2016-08-29 16:20:18 -04:00
genv8constants.py
getmoduleversion.py build: configure --shared 2016-06-28 17:48:22 -04:00
getnodeversion.py build: configure --shared 2016-06-28 17:48:22 -04:00
gyp_node.py build: don't compile with -B, redux 2016-05-10 12:01:10 +02:00
install.py build: add correct shared library naming on OS X 2016-08-09 11:55:01 -04:00
js2c.py src: support UTF-8 in compiled-in JS source files 2017-02-14 12:02:15 -05:00
jslint.js tools: add -F flag for fixing lint issues 2016-05-02 16:58:52 -07:00
license-builder.sh test: remove dependency on node-weak 2017-02-14 11:52:32 -05:00
license2rtf.js lib,tools: remove unneeded escaping of / 2016-12-05 03:20:38 +01:00
lsan_suppressions.txt build: add --enable-asan with builtin leakcheck 2015-09-06 21:38:00 +10:00
macosx-firewall.sh tools: add macosx-firwall script to avoid popups 2016-12-13 10:57:58 -05:00
make-v8.sh v8: update make-v8.sh to use git 2016-11-11 10:48:36 -05:00
Makefile
mk-ca-bundle.pl tools: output include guards in mk-ca-bundle.pl 2016-06-23 09:25:30 +02:00
mkssldef.py build: export zlib symbols on Windows 2016-08-08 15:15:48 +02:00
osx-codesign.sh
osx-pkg-postinstall.sh
osx-productsign.sh
release.sh tools: use long format for gpg fingerprint 2016-11-07 15:58:32 -06:00
run-valgrind.py tools: make run-valgrind.py useful 2016-11-22 06:35:49 +01:00
sign.bat win,build: try multiple timeservers when signing 2016-10-18 16:28:39 -07:00
specialize_node_d.py tools: remove unnecessary imports and assignments 2016-07-08 20:17:08 +05:30
test-npm-package.js build: add node-inspect integration test 2017-02-14 11:52:38 -05:00
test-npm.sh tools: update npm test tooling for 3.3.10+ 2015-11-02 14:22:41 -05:00
test.py tools: remove NODE_PATH from environment for tests 2017-03-05 23:24:50 +01:00
update-authors.sh
utils.py build: enable compilation for linuxOne 2016-03-29 18:52:48 -04:00