Initialize env_logger for our *.wast tests

This commit is contained in:
Nick Fitzgerald
2020-05-21 13:24:24 -07:00
parent 1898d52966
commit 38a92d89de
3 changed files with 4 additions and 1 deletions

View File

@@ -155,9 +155,10 @@ fn write_testsuite_tests(
writeln!(out, "#[ignore]")?;
}
writeln!(out, "fn r#{}() {{", &testname)?;
writeln!(out, " let _ = env_logger::try_init();")?;
writeln!(
out,
"crate::wast::run_wast(r#\"{}\"#, crate::wast::Strategy::{}).unwrap();",
" crate::wast::run_wast(r#\"{}\"#, crate::wast::Strategy::{}).unwrap();",
path.display(),
strategy
)?;