Skip the tor integration tests if any needed tor tools are missing

This commit is contained in:
Jean-Paul Calderone 2023-03-27 13:55:53 -04:00
parent c478160988
commit b65e8c72df
2 changed files with 3 additions and 4 deletions

View File

@ -451,10 +451,9 @@ 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
missing = [exe for exe in ["tor", "tor-gencert"] if not which(exe)]
if missing:
pytest.skip(f"Some command-line tools not found: {missing}")
# 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

0
newsfragments/4000.minor Normal file
View File