Skip to content

Commit

Permalink
Revisit the external tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed May 20, 2024
1 parent 0703cac commit 2addff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ test-name-external:
--exclude google-fonts/ofl/bungeecolor \
--exclude google-fonts/ofl/bungeespice \
--exclude google-fonts/ofl/gentiumbookbasic \
--exclude google-fonts/ofl/gruppo \
--exclude google-fonts/ofl/iceland \
--exclude google-fonts/ofl/kaushanscript \
--exclude google-fonts/ufl/ubuntu \
--exclude web-platform-tests/css/WOFF2/support/SFNT-CFF-Fallback \
--exclude web-platform-tests/css/WOFF2/support/SFNT-CFF-Reference \
Expand Down Expand Up @@ -65,12 +62,9 @@ test-vectorize-external:
# https://github.com/google/fonts/issues/5551
# https://github.com/google/fonts/issues/5724
cargo run --bin founder-vectorize -- \
--path ../tests/fixtures/external \
--path tests/fixtures/external \
--exclude google-fonts/ofl/bungeecolor \
--exclude google-fonts/ofl/bungeespice \
--exclude google-fonts/ofl/gruppo \
--exclude google-fonts/ofl/iceland \
--exclude google-fonts/ofl/kaushanscript \
--exclude google-fonts/ufl/ubuntu \
--exclude web-platform-tests/css/WOFF2/support/SFNT-CFF-Fallback \
--exclude web-platform-tests/css/WOFF2/support/SFNT-CFF-Reference \
Expand Down
2 changes: 1 addition & 1 deletion src/bin/support/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};

pub fn filter(path: &Path, includes: &[&str], excludes: &[&str]) -> bool {
let path = path.to_str().unwrap();
includes.iter().any(|value| path.contains(value))
includes.iter().any(|value| path.ends_with(value))
&& !excludes.iter().any(|value| path.contains(value))
}

Expand Down

0 comments on commit 2addff1

Please sign in to comment.