From c9ef77622de3bc0112fafd5ef0fd6f2eab8fe4fe Mon Sep 17 00:00:00 2001 From: rathann Date: Wed, 22 Jul 2020 18:40:20 +0000 Subject: 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) --- scripts/test/wasm2js.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/test') 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) -- cgit v1.2.3