[Git][reproducible-builds/diffoscope][master] Do not warn about missing tlsh during tests

Mattia Rizzolo gitlab at salsa.debian.org
Sun Jun 21 12:21:16 UTC 2020



Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope


Commits:
cbf8a2c9 by Mattia Rizzolo at 2020-06-21T14:19:20+02:00
Do not warn about missing tlsh during tests

See the comments in
https://salsa.debian.org/reproducible-builds/diffoscope/-/issues/29 for
more background, as well as the thread at
https://lists.reproducible-builds.org/pipermail/diffoscope/2020-June/002642.html

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- diffoscope/main.py


Changes:

=====================================
diffoscope/main.py
=====================================
@@ -658,7 +658,7 @@ def run_diffoscope(parsed_args):
 
     ProfileManager().setup(parsed_args)
     PresenterManager().configure(parsed_args)
-    if not tlsh:
+    if not tlsh and "PYTEST_CURRENT_TEST" not in os.environ:
         logger.warning(
             'Fuzzy-matching is currently disabled as the "tlsh" module is unavailable.'
         )



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/cbf8a2c923a31e10b8e69167aed52cc033a8dd21

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/cbf8a2c923a31e10b8e69167aed52cc033a8dd21
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200621/d3deec7e/attachment.htm>


More information about the rb-commits mailing list