Allow disabling --debug in wasm-bindgen-test-runner

Afterwards remove the `non_debug` test as we're running the entire test suite in
non-debug mode!
This commit is contained in:
Alex Crichton
2018-08-06 09:57:41 -07:00
parent 3c52a82213
commit 6edf063c94
6 changed files with 11 additions and 50 deletions

View File

@ -123,11 +123,12 @@ fn rmain() -> Result<(), Error> {
node = !custom.payload().contains(&0x01);
}
let headless = env::var("NO_HEADLESS").is_err();
let debug = env::var("WASM_BINDGEN_NO_DEBUG").is_err();
// Make the generated bindings available for the tests to execute against.
shell.status("Executing bindgen...");
let mut b = Bindgen::new();
b.debug(true)
b.debug(debug)
.nodejs(node)
.input_module(module, wasm, |w| parity_wasm::serialize(w).unwrap())
.keep_debug(false)