-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
More OSS-Fuzz support #5328
More OSS-Fuzz support #5328
Conversation
Test failure appears to be unrelated. |
Tests/oss-fuzz/test_fuzzers.py
Outdated
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).split(b"\n") | ||
) | ||
def test_fuzz_fonts(path): | ||
if not path or b"LICENSE.txt" in path or b".pil" in path: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not path or b"LICENSE.txt" in path or b".pil" in path: | |
if not path or path.endswith(b"LICENSE.txt") or path.endswith(b".pil"): |
from PIL import Image | ||
|
||
if sys.platform.startswith("win32"): | ||
pytest.skip("Fuzzer is linux only", allow_module_level=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytest.skip("Fuzzer is linux only", allow_module_level=True) | |
pytest.skip("Fuzzer is macOS and Linux only", allow_module_level=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, technically, it's linux only, but the required bits don't fail on osx because it includes the find command.
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).split(b"\n") | ||
) | ||
def test_fuzz_fonts(path): | ||
if not path: | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).split(b"\n") | |
) | |
def test_fuzz_fonts(path): | |
if not path: | |
return | |
"path", subprocess.check_output("find Tests/fonts -type f", shell=True).strip().split(b"\n") | |
) | |
def test_fuzz_fonts(path): |
Changes proposed in this pull request: