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

Check that tidy supports the mute option #345

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

greedy
Copy link
Contributor

@greedy greedy commented Mar 31, 2019

macOS comes with tidy but it is an old version that does not support the --mute option. This leads to spurious test failures on macOS.

This adds a check to is_present_in_path that requires the available version of tidy support the mute configuration option before it will be used.

macOS comes with tidy but it is an old version that does not support the
`--mute` option. This leads to spurious test failures on macOS.

This adds a check to is_present_in_path that requires the available
version of tidy support the mute configuration option before it will be
used.
@aantron aantron merged commit aec0aa0 into ocaml:master Apr 1, 2019
@aantron
Copy link
Contributor

aantron commented Apr 1, 2019

Thanks. I think we'd eventually prefer a version check, but this works.

@greedy
Copy link
Contributor Author

greedy commented Apr 1, 2019

@aantron a version check was the first thing I had in mind but the version string for the version on macOS El Captian (yes, I know, it's quite old) reads

HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 15.17

where 5.6.0 built here says

HTML Tidy for Apple macOS version 5.6.0

so it's not too straightforward to compare the version strings.

@aantron
Copy link
Contributor

aantron commented Apr 1, 2019

Argh, yes, fair enough. Thanks!

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.

2 participants