devtools/migrtest.py
changeset 2144 51c84d585456
parent 2105 92ea410806fe
child 3904 dc7d315165fc
equal deleted inserted replaced
2141:0072247db207 2144:51c84d585456
    40 from os.path import join, basename
    40 from os.path import join, basename
    41 
    41 
    42 from logilab.common.shellutils import cp, rm
    42 from logilab.common.shellutils import cp, rm
    43 
    43 
    44 from cubicweb.toolsutils import read_config
    44 from cubicweb.toolsutils import read_config
    45 from cubicweb.server.serverctl import generate_sources_file
    45 from cubicweb.server.utils import generate_sources_file
    46 
    46 
    47 # XXXX use db-copy instead
    47 # XXXX use db-copy instead
    48 
    48 
    49 # test environment configuration
    49 # test environment configuration
    50 chrootpath = '/sandbox/cubicwebtest'
    50 chrootpath = '/sandbox/cubicwebtest'
    51 tmpdbhost = 'crater'
    51 tmpdbhost = 'crater'
    52 tmpdbuser = 'syt' 
    52 tmpdbuser = 'syt'
    53 tmpdbpasswd = 'syt'
    53 tmpdbpasswd = 'syt'
    54 
    54 
    55 def play_migration(applhome, applhost='', sudo=False):
    55 def play_migration(applhome, applhost='', sudo=False):
    56     applid = dbname = basename(applhome)
    56     applid = dbname = basename(applhome)
    57     testapplhome = join(chrootpath, applhome)
    57     testapplhome = join(chrootpath, applhome)