aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/reftest.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/reftest.rs b/tests/reftest.rs
index 28e6cd20f4c..85a4d9c7b56 100644
--- a/tests/reftest.rs
+++ b/tests/reftest.rs
@@ -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),
};