Skip to content

Commit 53b37b6

Browse files
committed
use cargo bin exe
1 parent 6479786 commit 53b37b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tmc-langs-cli/tests/core.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ fn init() -> (Mock, Mock) {
3434
}
3535

3636
fn run_cmd(args: &[&str]) -> Output {
37-
let path = env::current_exe().unwrap().parent().unwrap().to_path_buf();
38-
let path = path.parent().unwrap().join("tmc-langs-cli");
37+
let path = env!("CARGO_BIN_EXE_tmc-langs-cli");
3938
let mut child = Command::new(path)
4039
.stdout(Stdio::piped())
4140
.stdin(Stdio::piped())

0 commit comments

Comments
 (0)