# HG changeset patch # User Marcin Kuzminski # Date 2013-03-07 19:06:25 # Node ID 3d5f4d2f0826867264854f985dadc777ee8f6323 # Parent a76ab0130dbe8ab8e61b82e79b6975c129c9b674 fixed edge case in tests when we run them from virtualmachine and not as owner of files diff --git a/rhodecode/tests/vcs/conf.py b/rhodecode/tests/vcs/conf.py --- 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(_ 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