mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix reftests.
`dirname()` now returns a `&'a [u8]` instead of a `Path`, which was serialized to `[ 1 2 3 4 5 ]`.
This commit is contained in:
parent
d2b57ba7c1
commit
b65e3ea86e
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ fn parse_lists(filenames: &[~str]) -> ~[TestDescAndFn] {
|
|||
_ => fail!(fmt!("reftest line: '%s' has invalid kind '%s'",
|
||||
line, parts[0]))
|
||||
};
|
||||
let src_dir = file_path.dirname().to_str();
|
||||
let src_path = file_path.dir_path();
|
||||
let src_dir = src_path.display().to_str();
|
||||
let file_left = src_dir + "/" + parts[1];
|
||||
let file_right = src_dir + "/" + parts[2];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue