aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-12-02 18:23:06 -0800
committerSimon Sapin <simon.sapin@exyr.org>2014-12-02 18:23:06 -0800
commite1c2210c23e2e5f7a24901618698c090279092ee (patch)
treee9a1c8b6dc056448fea6d52229e54817b97d14d2 /tests
parent9bbc633cedc0567d971d42e8ab75af5ee40c8035 (diff)
downloadservo-e1c2210c23e2e5f7a24901618698c090279092ee.tar.gz
servo-e1c2210c23e2e5f7a24901618698c090279092ee.zip
More target path fixup.
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),
};