diff rhodecode/config/environment.py @ 2752:6d904a0cd48d beta

added new suite of tests for VCS operations - locking tests - push pull tests - added new ENV option to bypass re-creation of test enviroment
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 28 Aug 2012 09:28:09 +0200
parents eaf1782bee64
children 63e58ef80ef1 84414d73c233
line wrap: on
line diff
--- a/rhodecode/config/environment.py	Tue Aug 28 09:05:27 2012 +0200
+++ b/rhodecode/config/environment.py	Tue Aug 28 09:28:09 2012 +0200
@@ -78,7 +78,10 @@
 
         from rhodecode.lib.utils import create_test_env, create_test_index
         from rhodecode.tests import  TESTS_TMP_PATH
-        create_test_env(TESTS_TMP_PATH, config)
+        # set RC_NO_TMP_PATH=1 to disable re-creating the database and
+        # test repos
+        if not int(os.environ.get('RC_NO_TMP_PATH', 0)):
+            create_test_env(TESTS_TMP_PATH, config)
         # set RC_WHOOSH_TEST_DISABLE=1 to disable whoosh index during tests
         if not int(os.environ.get('RC_WHOOSH_TEST_DISABLE', 0)):
             create_test_index(TESTS_TMP_PATH, config, True)