Show More
@@ -514,6 +514,11 b' def create_test_env(repos_test_path, con' | |||
|
514 | 514 | dbconf = config['sqlalchemy.db1.url'] |
|
515 | 515 | log.debug('making test db %s', dbconf) |
|
516 | 516 | |
|
517 | # create test dir if it doesn't exist | |
|
518 | if not os.path.isdir(repos_test_path): | |
|
519 | log.debug('Creating testdir %s' % repos_test_path) | |
|
520 | os.makedirs(repos_test_path) | |
|
521 | ||
|
517 | 522 | dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=config['here'], |
|
518 | 523 | tests=True) |
|
519 | 524 | dbmanage.create_tables(override=True) |
@@ -38,8 +38,8 b' import pylons.test' | |||
|
38 | 38 | environ = {} |
|
39 | 39 | |
|
40 | 40 | #SOME GLOBALS FOR TESTS |
|
41 | TESTS_TMP_PATH = jn('/', 'tmp') | |
|
42 | ||
|
41 | from tempfile import _RandomNameSequence | |
|
42 | TESTS_TMP_PATH = jn('/', 'tmp', 'rc_test_%s' % _RandomNameSequence().next()) | |
|
43 | 43 | HG_REPO = 'vcs_test_hg' |
|
44 | 44 | GIT_REPO = 'vcs_test_git' |
|
45 | 45 |
General Comments 0
You need to be logged in to leave comments.
Login now