mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
diag(cts_runner): raise log level to info by default (#9734)
This commit is contained in:
1 parent
f87b0dd1db
commit
6c4c07b204
2 files changed
+8
-1
No files matched your search
@@ -241,6 +241,9 @@ async fn main() {
|
||||
{
|
||||
install_unhandled_exception_filter();
|
||||
}
|
||||
env_logger::init();
|
||||
env_logger::builder()
|
||||
.filter_level(log::LevelFilter::Info)
|
||||
.parse_default_env()
|
||||
.init();
|
||||
unwrap_or_exit(run().await)
|
||||
}
|
||||
@@ -27,6 +27,10 @@ pub fn cts_runner_exe_path() -> PathBuf {
|
||||
fn exec_cts_runner(script_file: impl AsRef<OsStr>) -> Output {
|
||||
Command::new(cts_runner_exe_path())
|
||||
.arg(script_file)
|
||||
// NOTE: Because `cts_runner` inits `env_logger` to info-level severity by default, we can
|
||||
// get unstable output that isn't super useful for snapshot tests. Just work with
|
||||
// error-level logs instead.
|
||||
.env("RUST_LOG", "error")
|
||||
.output()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user