[diffoscope] 01/01: do not try to execute the command if the command is not available
Mattia Rizzolo
mattia at debian.org
Sat Aug 13 18:20:39 CEST 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository diffoscope.
commit 742f6e86ee712bbda8bbfa0ae08901de6757ee7f
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Aug 13 16:20:30 2016 +0000
do not try to execute the command if the command is not available
---
tests/comparators/conftest.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/comparators/conftest.py b/tests/comparators/conftest.py
index efdcb20..66276e0 100644
--- a/tests/comparators/conftest.py
+++ b/tests/comparators/conftest.py
@@ -33,6 +33,8 @@ def tool_missing(cmd):
def tool_older_than(cmdline, min_ver, vcls=StrictVersion):
+ if find_executable(cmdline[0]) is None:
+ return True
actual_ver = subprocess.check_output(cmdline).decode("utf-8").strip()
return vcls(actual_ver) < vcls(min_ver)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list