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

Update malware-detection tests for different version of yara #4235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhuth
Copy link
Contributor

@mhuth mhuth commented Oct 2, 2024

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Versions of yara 4.5.x and later change/fix the fast-scan option and produce different results than earlier versions. This PR updates the malware-detection tests so they work with both versions before and after version 4.5.x.

This PR doesn't affect the functionality of malware-detection in any way. It just modifies some of the unittests. And even then, the modified unittests only run if yara is actually installed on system running the tests.

- Versions of yara >= 4.5.x produce slightly different results to earlier versions

Signed-off-by: Mark Huth <[email protected]>
@mhuth mhuth self-assigned this Oct 2, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.88%. Comparing base (7ff8c5e) to head (3aa2086).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4235   +/-   ##
=======================================
  Coverage   76.88%   76.88%           
=======================================
  Files         757      757           
  Lines       41342    41342           
  Branches     9526     9526           
=======================================
+ Hits        31785    31787    +2     
+ Misses       8479     8478    -1     
+ Partials     1078     1077    -1     
Flag Coverage Δ
unittests 76.86% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mhuth mhuth requested a review from xiangce October 2, 2024 03:08
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