Changeset - 3d5f4d2f0826
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-03-07 20:06:25
marcin@python-works.com
fixed edge case in tests when we run them from virtualmachine and not as owner of files
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/vcs/conf.py
Show inline comments
 
@@ -4,12 +4,13 @@ Unit tests configuration module for vcs.
 

	
 
import os
 
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
 

	
 
TEST_TMP_PATH = TESTS_TMP_PATH
 
#__all__ = (
 
@@ -55,8 +56,9 @@ THIS = os.path.abspath(os.path.dirname(_
 
#    name = '-'.join((name, hex))
 
#    path = os.path.join(TEST_DIR, name)
 
#    return get_normalized_path(path)
 

	
 
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
0 comments (0 inline, 0 general)