mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
commit
c5ecc0da39
1 changed files with 1 additions and 2 deletions
|
@ -68,8 +68,7 @@ fn test_options(config: Config) -> TestOpts {
|
||||||
|
|
||||||
fn find_tests(config: Config) -> ~[TestDescAndFn] {
|
fn find_tests(config: Config) -> ~[TestDescAndFn] {
|
||||||
let mut files = list_dir_path(&Path::new(config.source_dir));
|
let mut files = list_dir_path(&Path::new(config.source_dir));
|
||||||
// FIXME (#1094): not the right way to transform a path
|
files.retain(|file| file.extension_str() == Some("html") );
|
||||||
files.retain( |file| file.display().to_str().ends_with(".html") );
|
|
||||||
return files.map(|file| make_test(file.display().to_str()) );
|
return files.map(|file| make_test(file.display().to_str()) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue