diff options
author | Sam Clegg <sbc@chromium.org> | 2020-04-27 15:45:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 12:45:12 -0700 |
commit | 720aad93fcf3ce8b121ed73f2a8482a36b80fa55 (patch) | |
tree | b0950081b5ab8943355fca54821936711d81a1fe /scripts/test | |
parent | 25c884e6b91e25e87a4fd6298bf511d17737b112 (diff) | |
download | binaryen-720aad93fcf3ce8b121ed73f2a8482a36b80fa55.tar.gz binaryen-720aad93fcf3ce8b121ed73f2a8482a36b80fa55.tar.bz2 binaryen-720aad93fcf3ce8b121ed73f2a8482a36b80fa55.zip |
Fix binaryenjs testing (#2810)
These tests are now optional. However, if you run them and the
build is not found they will now error out, in order to avoid silently
failing.
Diffstat (limited to 'scripts/test')
-rw-r--r-- | scripts/test/binaryenjs.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/test/binaryenjs.py b/scripts/test/binaryenjs.py index 645c2501a..c5974145d 100644 --- a/scripts/test/binaryenjs.py +++ b/scripts/test/binaryenjs.py @@ -21,14 +21,11 @@ from . import support def do_test_binaryen_js_with(which): if not (shared.MOZJS or shared.NODEJS): - print('no vm to run binaryen.js tests') - return + shared.fail_with_error('no vm to run binaryen.js tests') node_has_wasm = shared.NODEJS and support.node_has_webassembly(shared.NODEJS) - if not os.path.exists(which): - print('no ' + which + ' build to test') - return + shared.fail_with_error('no ' + which + ' build to test') print('\n[ checking binaryen.js testcases (' + which + ')... ]\n') |