mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Fix build failure in make check-content
This commit is contained in:
parent
1f7c738a89
commit
9f6de7e5e3
1 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ extern mod extra;
|
|||
|
||||
use extra::test::{TestOpts, run_tests_console, TestDesc, TestDescAndFn, DynTestFn, DynTestName};
|
||||
use extra::getopts::{getopts, reqopt, opt_str, fail_str};
|
||||
use std::{os, run, io, str, vec};
|
||||
use std::{os, run, io, str};
|
||||
use std::cell::Cell;
|
||||
use std::os::list_dir_path;
|
||||
|
||||
|
@ -61,9 +61,9 @@ fn test_options(config: Config) -> TestOpts {
|
|||
}
|
||||
|
||||
fn find_tests(config: Config) -> ~[TestDescAndFn] {
|
||||
let all_files = list_dir_path(&Path(config.source_dir));
|
||||
let html_files = vec::filter(all_files, |file| file.to_str().ends_with(".html") );
|
||||
return html_files.map(|file| make_test((*file).to_str()) );
|
||||
let mut files = list_dir_path(&Path(config.source_dir));
|
||||
files.retain( |file| file.to_str().ends_with(".html") );
|
||||
return files.map(|file| make_test((*file).to_str()) );
|
||||
}
|
||||
|
||||
fn make_test(file: ~str) -> TestDescAndFn {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue