[tor-commits] [stem/master] Tor executable shouldn't be needed for unit tests

atagar at torproject.org atagar at torproject.org
Wed Jun 13 16:29:46 UTC 2012


commit e09e6b00a4b603db6342d27a11e3073acf8c74c6
Author: Damian Johnson <atagar at torproject.org>
Date:   Wed Jun 13 08:46:21 2012 -0700

    Tor executable shouldn't be needed for unit tests
    
    We only need a tor variable when running the integ tests. Dropping the check
    that it exists in our path if we're just running the unit tests.
---
 run_tests.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/run_tests.py b/run_tests.py
index cd7c688..a6d604c 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -213,7 +213,7 @@ def load_user_configuration(test_config):
     sys.exit(1)
   
   tor_config = CONFIG["argument.tor"]
-  if not os.path.exists(tor_config) and not stem.util.system.is_available(tor_config):
+  if CONFIG["argument.integ"] and not os.path.exists(tor_config) and not stem.util.system.is_available(tor_config):
     print "Unable to start tor, '%s' does not exists." % tor_config
     sys.exit(1)
 





More information about the tor-commits mailing list