Auto merge of #91037 - c410-f3r:testsssssss, r=petrochenkov
Move some tests to more reasonable directories - 10 cc #73494 r? `@petrochenkov`
This commit is contained in:
commit
e2f6fb9996
@ -7,9 +7,8 @@ use std::path::Path;
|
|||||||
|
|
||||||
const ENTRY_LIMIT: usize = 1000;
|
const ENTRY_LIMIT: usize = 1000;
|
||||||
// FIXME: The following limits should be reduced eventually.
|
// FIXME: The following limits should be reduced eventually.
|
||||||
const ROOT_ENTRY_LIMIT: usize = 983;
|
const ROOT_ENTRY_LIMIT: usize = 982;
|
||||||
const ISSUES_ENTRY_LIMIT: usize = 2310;
|
const ISSUES_ENTRY_LIMIT: usize = 2310;
|
||||||
const PARSER_LIMIT: usize = 1012;
|
|
||||||
|
|
||||||
fn check_entries(path: &Path, bad: &mut bool) {
|
fn check_entries(path: &Path, bad: &mut bool) {
|
||||||
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
|
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
|
||||||
@ -22,13 +21,10 @@ fn check_entries(path: &Path, bad: &mut bool) {
|
|||||||
// Use special values for these dirs.
|
// Use special values for these dirs.
|
||||||
let is_root = path.join("test/ui") == dir_path;
|
let is_root = path.join("test/ui") == dir_path;
|
||||||
let is_issues_dir = path.join("test/ui/issues") == dir_path;
|
let is_issues_dir = path.join("test/ui/issues") == dir_path;
|
||||||
let is_parser = path.join("test/ui/parser") == dir_path;
|
|
||||||
let limit = if is_root {
|
let limit = if is_root {
|
||||||
ROOT_ENTRY_LIMIT
|
ROOT_ENTRY_LIMIT
|
||||||
} else if is_issues_dir {
|
} else if is_issues_dir {
|
||||||
ISSUES_ENTRY_LIMIT
|
ISSUES_ENTRY_LIMIT
|
||||||
} else if is_parser {
|
|
||||||
PARSER_LIMIT
|
|
||||||
} else {
|
} else {
|
||||||
ENTRY_LIMIT
|
ENTRY_LIMIT
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user