Skip to content

Commit 2a8197d

Browse files
committed
移除测试中的环境日志初始化代码
1 parent 2b6a62b commit 2a8197d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

uboot-shell/tests/test.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ fn new_uboot() -> (Child, UbootShell) {
5555
#[test]
5656
#[timeout(5000)]
5757
fn test_shell() {
58-
env_logger::builder()
59-
.is_test(true)
60-
.filter_level(log::LevelFilter::Trace)
61-
.init();
62-
6358
let (mut out, _uboot) = new_uboot();
6459
info!("test_shell ok");
6560
let _ = out.kill();
@@ -95,11 +90,6 @@ fn test_setenv() {
9590
#[test]
9691
#[timeout(5000)]
9792
fn test_env() {
98-
env_logger::builder()
99-
.is_test(true)
100-
.filter_level(log::LevelFilter::Debug)
101-
.init();
102-
10393
with_uboot(|uboot| {
10494
uboot.set_env("fdt_addr", "0x40000000").unwrap();
10595
info!("set fdt_addr ok");

0 commit comments

Comments
 (0)