[stem/master] Don't run test for 'tor --version' when using the RUN_NONE target

commit ba47de68650c0d9f6735ad8b463b2148e268f6d2 Author: Damian Johnson <atagar@torproject.org> Date: Mon Feb 9 07:58:31 2015 -0800 Don't run test for 'tor --version' when using the RUN_NONE target This test compares the output to 'GETINFO version' so being unable to connect to tor breaks the test. --- test/integ/process.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integ/process.py b/test/integ/process.py index b1fbe73..b935d46 100644 --- a/test/integ/process.py +++ b/test/integ/process.py @@ -49,6 +49,9 @@ class TestProcess(unittest.TestCase): Check that 'tor --version' matches 'GETINFO version'. """ + if test.runner.require_control(self): + return + with test.runner.get_runner().get_tor_controller() as controller: self.assertEqual('Tor version %s.\n' % controller.get_version(), self.run_tor('--version'))
participants (1)
-
atagar@torproject.org