diff options
author | rathann <dominik@greysector.net> | 2020-07-22 18:40:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 11:40:20 -0700 |
commit | c9ef77622de3bc0112fafd5ef0fd6f2eab8fe4fe (patch) | |
tree | ffaa0fb81912539403bb19b94f9a76351ab74f1b | |
parent | a097820b6f0d2bc4d31ace2764f07bfa17c2cad8 (diff) | |
download | binaryen-c9ef77622de3bc0112fafd5ef0fd6f2eab8fe4fe.tar.gz binaryen-c9ef77622de3bc0112fafd5ef0fd6f2eab8fe4fe.tar.bz2 binaryen-c9ef77622de3bc0112fafd5ef0fd6f2eab8fe4fe.zip |
Disable nodejs warnings in test suite (#2973)
Fixes issue #2970
Avoids "Exception: 'run_command unexpected stderr'" when running wasm2js tests
with nodejs-14.5.0+, which is due to extra warnings from that node:
$ cd out/test/
$ /usr/bin/node --experimental-modules --loader /builddir/build/BUILD/binaryen-version_95/scripts/test/node-esm-loader.mjs a.2asm.mjs
(node:187299) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
-rw-r--r-- | scripts/test/wasm2js.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 97320445b..3ccf3c9dc 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -80,7 +80,7 @@ def test_wasm2js_output(): # `spectest` and `env` modules in our tests. if shared.NODEJS: loader = os.path.join(shared.options.binaryen_root, 'scripts', 'test', 'node-esm-loader.mjs') - node = [shared.NODEJS, '--experimental-modules', '--loader', loader] + node = [shared.NODEJS, '--experimental-modules', '--no-warnings', '--loader', loader] cmd = node[:] cmd.append('a.2asm.mjs') out = support.run_command(cmd) |