Skip the tor integration tests if tor is missing

This commit is contained in:
Jean-Paul Calderone 2023-03-14 17:20:34 +00:00
parent dafd084768
commit a2a21c3730

View File

@ -451,10 +451,8 @@ def chutney(reactor, temp_dir):
chutney_dir = join(temp_dir, 'chutney')
mkdir(chutney_dir)
# TODO:
# check for 'tor' binary explicitly and emit a "skip" if we can't
# find it
if not which("tor"):
pytest.skip("tor command-line tool is not available")
# XXX yuck! should add a setup.py to chutney so we can at least
# "pip install <path to tarball>" and/or depend on chutney in "pip