Skip to content

Commit

Permalink
test(parser): fix platform specific issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Feb 27, 2024
1 parent 8e99489 commit a0f11b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test
on:
# push:
# branches:
# - master
push:
branches:
- master


workflow_dispatch:
Expand Down
3 changes: 1 addition & 2 deletions crates/fuse-parser/tests/cases/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ impl<'a> Context<'a> {
#[test]
fn pass() {
let root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
panic!("{:?} :: {}", root, file!());

let ctx = Context {
root,
Expand Down Expand Up @@ -87,7 +86,7 @@ fn panic() {
fn load_cases(ctx: &Context) -> Vec<PathBuf> {
fs::read_dir(ctx.path())
.expect(&format!("Failed to read {}", ctx.path().to_str().unwrap()))
.map(|x| x.unwrap())
.filter_map(|x| x.ok())
.filter(|x| x.metadata().is_ok_and(|meta| meta.is_dir()))
.map(|node| node.path())
.collect()
Expand Down

0 comments on commit a0f11b8

Please sign in to comment.