Skip to content

Commit

Permalink
Auto merge of #91037 - c410-f3r:testsssssss, r=petrochenkov
Browse files Browse the repository at this point in the history
Move some tests to more reasonable directories - 10

cc #73494
r? `@petrochenkov`
  • Loading branch information
bors committed Nov 25, 2021
2 parents dd549dc + 062abf3 commit e2f6fb9
Show file tree
Hide file tree
Showing 29 changed files with 1 addition and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions src/tools/tidy/src/ui_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ use std::path::Path;

const ENTRY_LIMIT: usize = 1000;
// 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 PARSER_LIMIT: usize = 1012;

fn check_entries(path: &Path, bad: &mut bool) {
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
Expand All @@ -22,13 +21,10 @@ fn check_entries(path: &Path, bad: &mut bool) {
// Use special values for these dirs.
let is_root = path.join("test/ui") == 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 {
ROOT_ENTRY_LIMIT
} else if is_issues_dir {
ISSUES_ENTRY_LIMIT
} else if is_parser {
PARSER_LIMIT
} else {
ENTRY_LIMIT
};
Expand Down

0 comments on commit e2f6fb9

Please sign in to comment.