[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Check version when testing ability to pass a config in via the stdin



commit 5b89a6da5e93bac48a75d729dca79bea2ec036e9
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sun Feb 22 14:41:49 2015 -0800

    Check version when testing ability to pass a config in via the stdin
    
    The feature this test exercises was added in 0.2.6.3-alpha...
    
      https://trac.torproject.org/projects/tor/ticket/14961
      https://trac.torproject.org/projects/tor/ticket/13865
---
 stem/version.py       |    2 ++
 test/integ/process.py |    1 +
 2 files changed, 3 insertions(+)

diff --git a/stem/version.py b/stem/version.py
index 649f3ba..0e451b5 100644
--- a/stem/version.py
+++ b/stem/version.py
@@ -59,6 +59,7 @@ easily parsed and compared, for instance...
   **TORRC_CONTROL_SOCKET**              'ControlSocket <path>' config option
   **TORRC_PORT_FORWARDING**             'PortForwarding' config option
   **TORRC_DISABLE_DEBUGGER_ATTACHMENT** 'DisableDebuggerAttachment' config option
+  **TORRC_VIA_STDIN**                   Allow torrc options via 'tor -f -' (:trac:`13865`)
   ===================================== ===========
 """
 
@@ -363,4 +364,5 @@ Requirement = stem.util.enum.Enum(
   ('TORRC_CONTROL_SOCKET', Version('0.2.0.30')),
   ('TORRC_PORT_FORWARDING', Version('0.2.3.1-alpha')),
   ('TORRC_DISABLE_DEBUGGER_ATTACHMENT', Version('0.2.3.9')),
+  ('TORRC_VIA_STDIN', Version('0.2.6.3-alpha')),
 )
diff --git a/test/integ/process.py b/test/integ/process.py
index 639dba5..d889272 100644
--- a/test/integ/process.py
+++ b/test/integ/process.py
@@ -229,6 +229,7 @@ class TestProcess(unittest.TestCase):
 
     self.assertEqual(expected, result)
 
+  @require_version(stem.version.Requirement.TORRC_VIA_STDIN)
   def test_torrc_arguments_via_stdin(self):
     """
     Pass configuration options via stdin.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits