Skip to content

Commit

Permalink
Fixup test path discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Oct 25, 2023
1 parent 739f143 commit 086e71e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fea-rs/src/util/ttx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ pub(crate) fn fonttools_test_glyph_order() -> GlyphMap {
let cwd = std::env::current_dir().expect("could not retrieve current directory");
// hack: during testing cwd is the crate root, but when running a binary
// it may be the project root
let path = if cwd.parent().expect("always present").ends_with("fea-rs") {
let path = if cwd.ends_with("fea-rs") {
assert!(!cwd.parent().expect("always presnt").ends_with("fea-rs"));
"./test-data/simple_glyph_order.txt"
} else {
"./fea-rs/test-data/simple_glyph_order.txt"
Expand Down

0 comments on commit 086e71e

Please sign in to comment.