mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
auto merge of #1114 : metajack/servo/reftest-sha-fix, r=larsbergstrom
`dirname()` now returns a `&'a [u8]` instead of a `Path`, which was serialized to `[ 1 2 3 4 5 ]`.
This commit is contained in:
commit
5168d4237a
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