aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/tests
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-03-07 20:06:25 +0100
committerMarcin Kuzminski <marcin@python-works.com>2013-03-07 20:06:25 +0100
commit2e9e49458247fdc9fd35a6508961a6ae682f3f7a (patch)
tree1c37b01e172ece25e0efd12183c2f32d569d5bbe /rhodecode/tests
parent071e9c42aae1d16500b00d4e546fb768f94a487a (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.py6
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