Skip to content

Commit 8ad87ad

Browse files
committed
Fix TEST_OVERWRITE env variable
1 parent 31aafad commit 8ad87ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test-assembly/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ use test_assembly::{get_artifact, get_runtime, read_assembly};
2020

2121
fn main() {
2222
let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
23-
let should_overwrite = option_env!("TEST_OVERWRITE").is_some();
23+
let should_overwrite = env::var("TEST_OVERWRITE")
24+
.map(|var| var == "1")
25+
.unwrap_or(false);
2426
let host = env!("TARGET");
2527

2628
println!("Host {host}");

0 commit comments

Comments
 (0)