Skip to content

Commit e3e0b67

Browse files
committed
Tweak condition for ignoring benchmarks.
We have no directories that end in `.git` or `scripts`.
1 parent 4d68c4f commit e3e0b67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

collector/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,7 @@ fn get_benchmarks(
317317
Err(e) => bail!("non-utf8 benchmark name: {:?}", e),
318318
};
319319

320-
if path.ends_with(".git")
321-
|| path.ends_with("scripts")
322-
|| !entry.file_type()?.is_dir()
323-
|| path.ends_with("rust-mozjs")
324-
{
320+
if !entry.file_type()?.is_dir() || path.ends_with("rust-mozjs") {
325321
debug!("benchmark {} - ignored", name);
326322
continue;
327323
}

0 commit comments

Comments
 (0)