Skip to content

Commit

Permalink
Check $NODE environment variable when looking for node (#1792)
Browse files Browse the repository at this point in the history
This allows me to run tests on a system where the default
installed node is not recent enough.
  • Loading branch information
sbc100 authored Nov 30, 2018
1 parent 33e337e commit 120bc39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/fuzz_relooper.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ def get_phi(j):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate()[0]
print '-'
slow_out = subprocess.Popen(['nodejs', 'fuzz.slow.js'],
node = os.getenv('NODE', 'nodejs')
slow_out = subprocess.Popen([node, 'fuzz.slow.js'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE).communicate()[0]
print '_'
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def is_exe(fpath):
which('gcc') or which('clang'))
NATIVEXX = (os.environ.get('CXX') or which('mingw32-g++') or
which('g++') or which('clang++'))
NODEJS = which('nodejs') or which('node')
NODEJS = os.getenv('NODE', which('nodejs') or which('node'))
MOZJS = which('mozjs') or which('spidermonkey')
EMCC = which('emcc')

Expand Down

0 comments on commit 120bc39

Please sign in to comment.