diff options
author | Sam Clegg <sbc@chromium.org> | 2018-11-30 14:45:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 14:45:59 -0800 |
commit | 120bc39f96ad2ae97f65fe677dd2b875159d406d (patch) | |
tree | e931f0fbe963f00a520a39dc26a5d4d6d10c2234 /scripts/fuzz_relooper.py | |
parent | 33e337e5c141026505b114967a6bf0bf975e5dfc (diff) | |
download | binaryen-120bc39f96ad2ae97f65fe677dd2b875159d406d.tar.gz binaryen-120bc39f96ad2ae97f65fe677dd2b875159d406d.tar.bz2 binaryen-120bc39f96ad2ae97f65fe677dd2b875159d406d.zip |
Check $NODE environment variable when looking for node (#1792)
This allows me to run tests on a system where the default
installed node is not recent enough.
Diffstat (limited to 'scripts/fuzz_relooper.py')
-rwxr-xr-x | scripts/fuzz_relooper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/fuzz_relooper.py b/scripts/fuzz_relooper.py index 151f39d61..62db2a3c5 100755 --- a/scripts/fuzz_relooper.py +++ b/scripts/fuzz_relooper.py @@ -372,7 +372,8 @@ int main() { 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 '_' |