[PATCH] tests: create test directories under /tmp/kallithea_tests rather than /tmp

Thomas De Schampheleire patrickdepinguin at gmail.com
Sun May 10 14:23:39 EDT 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1431280346 -7200
#      Sun May 10 19:52:26 2015 +0200
# Node ID b4524d737ef6d0d22526075b113ebfe333a44271
# Parent  98c06fc800ed0f0635f3aa189177027b3f8e6c1f
tests: create test directories under /tmp/kallithea_tests rather than /tmp

Do not pollute /tmp with tens of test directories.

diff --git a/kallithea/tests/__init__.py b/kallithea/tests/__init__.py
--- a/kallithea/tests/__init__.py
+++ b/kallithea/tests/__init__.py
@@ -85,7 +85,7 @@ environ = {}
 
 #SOME GLOBALS FOR TESTS
 
-TESTS_TMP_PATH = jn('/', 'tmp', 'rc_test_%s' % _RandomNameSequence().next())
+TESTS_TMP_PATH = jn('/', 'tmp', 'kallithea_tests', 'rc_test_%s' % _RandomNameSequence().next())
 TEST_USER_ADMIN_LOGIN = 'test_admin'
 TEST_USER_ADMIN_PASS = 'test12'
 TEST_USER_ADMIN_EMAIL = 'test_admin at mail.com'


More information about the kallithea-general mailing list