Skip to content

Commit b50113f

Browse files
committed
临时抽象
1 parent 0da209d commit b50113f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/snm_test_utils/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,15 @@ impl SnmTestContext {
7070
.to_string();
7171

7272
let new_path = format!("{}{}{}", debug_dir, path_sep, env_path);
73-
HashMap::from([("PATH".to_string(), new_path)])
73+
HashMap::from([
74+
("PATH".to_string(), new_path),
75+
("RUST_BACKTRACE".to_string(), "0".to_string()),
76+
])
7477
}
7578

7679
fn get_debug_dir() -> PathBuf {
7780
let e2e_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
7881

79-
println!("e2e_dir: {:?}", e2e_dir);
80-
8182
let root_dir = e2e_dir
8283
.parent()
8384
.expect("Failed to get root dir")

e2e/tests/tmp_test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ async fn h(ctx: &mut SnmTestContext) -> anyhow::Result<()> {
1111
tmp_test::setup_http_server(ctx).await?;
1212
ctx.cwd(&cwd);
1313
ctx.vars(&[
14-
("RUST_BACKTRACE".to_string(), "0".to_string()),
1514
("SNM_STRICT".to_string(), "true".to_string()),
1615
(
1716
"SNM_HOME_DIR".to_string(),

0 commit comments

Comments
 (0)