Merge pull request #1279 from exarkun/4000.tor-integration-tests-skip

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

Fixes: ticket:4000
This commit is contained in:
Jean-Paul Calderone 2023-03-28 13:23:49 -04:00 committed by GitHub
commit efa91df901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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