Mercurial > kallithea
changeset 3501:3d5f4d2f0826 beta
fixed edge case in tests when we run them from virtualmachine and not as owner of files
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 07 Mar 2013 20:06:25 +0100 |
parents | a76ab0130dbe |
children | 7cde75eac0fe |
files | rhodecode/tests/vcs/conf.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/tests/vcs/conf.py Thu Mar 07 15:06:40 2013 +0100 +++ b/rhodecode/tests/vcs/conf.py Thu Mar 07 20:06:25 2013 +0100 @@ -7,6 +7,7 @@ import hashlib import tempfile import datetime +import shutil from rhodecode.tests import * from utils import get_normalized_path from os.path import join as jn @@ -58,5 +59,6 @@ PACKAGE_DIR = os.path.abspath(os.path.join( os.path.dirname(__file__), '..')) - -TEST_USER_CONFIG_FILE = jn(THIS, 'aconfig') +_dest = jn(TESTS_TMP_PATH,'aconfig') +shutil.copy(jn(THIS, 'aconfig'), _dest) +TEST_USER_CONFIG_FILE = _dest