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:
bors-servo 2013-10-24 05:22:26 -07:00
commit 5168d4237a

View file

@ -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];