Skip to content

Commit

Permalink
Merge pull request #21 from alexcrichton/fix-beta
Browse files Browse the repository at this point in the history
Fix tests on beta
  • Loading branch information
rsolomo authored Jan 2, 2017
2 parents d446f78 + 8452a90 commit ce05b42
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/multitarget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ use std::process::Command;
use std::path::PathBuf;

fn cargo_check() -> Command {
Command::new(env::current_exe().unwrap().parent().unwrap().join("cargo-check"))
let mut me = env::current_exe().unwrap();
me.pop();
if me.ends_with("deps") {
me.pop();
}
Command::new(me.join("cargo-check"))
}

#[test]
Expand Down

0 comments on commit ce05b42

Please sign in to comment.