diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2013-03-07 20:06:25 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2013-03-07 20:06:25 +0100 |
commit | 2e9e49458247fdc9fd35a6508961a6ae682f3f7a (patch) | |
tree | 1c37b01e172ece25e0efd12183c2f32d569d5bbe /rhodecode/tests | |
parent | 071e9c42aae1d16500b00d4e546fb768f94a487a (diff) |
fixed edge case in tests when we run them from virtualmachine and not as owner of files
--HG--
branch : beta
extra : amend_source : 335ca208bc4fdabc03b8c695c897d60553f1edf2
Diffstat (limited to 'rhodecode/tests')
-rw-r--r-- | rhodecode/tests/vcs/conf.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rhodecode/tests/vcs/conf.py b/rhodecode/tests/vcs/conf.py index 5fa0fb55..1cedfaf3 100644 --- a/rhodecode/tests/vcs/conf.py +++ b/rhodecode/tests/vcs/conf.py @@ -7,6 +7,7 @@ import time 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 @@ THIS = os.path.abspath(os.path.dirname(__file__)) 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 |