Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform specific spec filters #2508

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Conversation

janbiedermann
Copy link
Member

May add spec/filters/platform/#{platform}/*.rb files

Will be required by safari runner and #2507

Copy link
Member

@elia elia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nit, but otherwise legit 🙌

Comment on lines 91 to 93
platform_filters = []
platform_filters = Dir["spec/filters/platform/#{platform}/*.rb"] if Dir.exist?("spec/filters/platform/#{platform}")
rubyspec_filters = (Dir['spec/filters/bugs/*.rb'] + Dir['spec/filters/unsupported/*.rb'] + platform_filters) - opalspec_filters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be simplified to:

rubyspec_filters = Dir["spec/filters/{unsupported,bugs,platform/#{platform}}/*.rb'] - opalspec_filters

as Dir[] doesn't require a check for existence

@elia elia added this to the v1.7.1 milestone Jan 3, 2023
@elia elia merged commit f058423 into opal:master Jan 4, 2023
@janbiedermann janbiedermann deleted the platform_filters branch January 5, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants