diff options
| author | Caio <c410.f3r@gmail.com> | 2021-01-16 15:54:05 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2021-01-16 19:46:54 -0300 |
| commit | ad35979c50366d6b0fbcda99215f1c4e926e5dab (patch) | |
| tree | 8bc4fd6168831ee45cf114456cc70d4cf49266d8 /src/tools | |
| parent | 63a83c5f55801b17b77adf690db397d17c706c48 (diff) | |
| download | rust-ad35979c50366d6b0fbcda99215f1c4e926e5dab.tar.gz rust-ad35979c50366d6b0fbcda99215f1c4e926e5dab.zip | |
Move some tests to more reasonable directories - 2
Address comments Update limits
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/tidy/src/ui_tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/tidy/src/ui_tests.rs b/src/tools/tidy/src/ui_tests.rs index bc5e43d8f0a..e687901f212 100644 --- a/src/tools/tidy/src/ui_tests.rs +++ b/src/tools/tidy/src/ui_tests.rs @@ -7,8 +7,8 @@ use std::path::Path; const ENTRY_LIMIT: usize = 1000; // FIXME: The following limits should be reduced eventually. -const ROOT_ENTRY_LIMIT: usize = 1500; -const ISSUES_ENTRY_LIMIT: usize = 2830; +const ROOT_ENTRY_LIMIT: usize = 1458; +const ISSUES_ENTRY_LIMIT: usize = 2669; fn check_entries(path: &Path, bad: &mut bool) { let dirs = walkdir::WalkDir::new(&path.join("test/ui")) @@ -30,7 +30,7 @@ fn check_entries(path: &Path, bad: &mut bool) { }; let count = std::fs::read_dir(dir_path).unwrap().count(); - if count >= limit { + if count > limit { tidy_error!( bad, "following path contains more than {} entries, \ |
