practracker: print a notice to stderr when disabled

When TOR_DISABLE_PRACTRACKER is set, print a message to
stderr when skipping practracker checks.

Part of 32705.
This commit is contained in:
teor 2020-01-14 17:32:11 +10:00
parent 6b1592b564
commit 7e111d0eaa
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 5 additions and 0 deletions

View File

@ -2,3 +2,6 @@
- When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
test_practracker.sh script. Doing so caused a test failure.
Fixes bug 32705; bugfix on 0.4.2.1-alpha.
- When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr
when skipping practracker checks.
Fixes bug 32705; bugfix on 0.4.2.1-alpha.

View File

@ -297,5 +297,7 @@ variable.
if __name__ == '__main__':
if os.environ.get("TOR_DISABLE_PRACTRACKER"):
print("TOR_DISABLE_PRACTRACKER is set, skipping practracker tests.",
file=sys.stderr)
sys.exit(0)
main(sys.argv)