More target path fixup.

This commit is contained in:
Simon Sapin 2014-12-02 18:23:06 -08:00
parent 9bbc633ced
commit e1c2210c23

View file

@ -112,7 +112,8 @@ fn run(test_opts: TestOpts, all_tests: Vec<TestDescAndFn>,
// Verify that we're passing in valid servo arguments. Otherwise, servo
// will exit before we've run any tests, and it will appear to us as if
// all the tests are failing.
let mut command = match Command::new("target/servo").args(servo_args.as_slice()).spawn() {
let mut command = match Command::new(os::self_exe_path().unwrap().join("servo"))
.args(servo_args.as_slice()).spawn() {
Ok(p) => p,
Err(e) => panic!("failed to execute process: {}", e),
};