commit 7e111d0eaa05d5099d101e82afa1709438fe994e Author: teor teor@torproject.org Date: Tue Jan 14 17:32:11 2020 +1000
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. --- changes/ticket32705_disable | 3 +++ scripts/maint/practracker/practracker.py | 2 ++ 2 files changed, 5 insertions(+)
diff --git a/changes/ticket32705_disable b/changes/ticket32705_disable index 1da643175..6d5b0779a 100644 --- a/changes/ticket32705_disable +++ b/changes/ticket32705_disable @@ -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. diff --git a/scripts/maint/practracker/practracker.py b/scripts/maint/practracker/practracker.py index f6aac9d15..71741265f 100755 --- a/scripts/maint/practracker/practracker.py +++ b/scripts/maint/practracker/practracker.py @@ -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)
tor-commits@lists.torproject.org