test: cli 测试直调编译产物二进制,脱离 cargo run 递归

This commit is contained in:
2026-08-16 15:02:04 +08:00
parent 7e180d9ac1
commit f416f49113
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
use std::process::Command;
fn run_eval(js: &str) -> std::process::Output {
Command::new("cargo")
.args(["run", "--", "eval", js])
Command::new(env!("CARGO_BIN_EXE_oxide"))
.args(["eval", js])
.output()
.expect("failed to run oxide eval")
}