Browse Source

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.
teor 2 years ago
parent
commit
7e111d0eaa
2 changed files with 5 additions and 0 deletions
  1. 3 0
      changes/ticket32705_disable
  2. 2 0
      scripts/maint/practracker/practracker.py

+ 3 - 0
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.

+ 2 - 0
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)