log_file.txt

download

ERROR /tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py actionid=py27-migractions
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py']
env={'LANG': 'en_US.UTF-8', 'APYCOT_ROOT': '/tmp/tmpVFdEsp', 'LANGUAGE': 'en_US:en', 'PYTHONPATH': '/usr/share/narval:/usr/share/narval', 'HGRCPATH': '/dev/null', 'LINES': '24', 'VIRTUAL_ENV': '/tmp/tmpVFdEsp/src/345579/.tox/py27-migractions', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HOME': '/var/lib/narval', 'LC_ALL': 'fr_FR.UTF-8', 'COLUMNS': '80'}
============================= test session starts ==============================
platform linux2 -- Python 2.7.9, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 47 items

cubicweb/server/test/unittest_migractions.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

==================================== ERRORS ====================================
________ ERROR at setup of MigrationCommandsTC.test_add_attribute_bool _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_________ ERROR at setup of MigrationCommandsTC.test_add_attribute_int _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MigrationCommandsTC.test_add_attribute_unique ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MigrationCommandsTC.test_add_attribute_varchar _______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__ ERROR at setup of MigrationCommandsTC.test_add_cube_with_custom_final_type __

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsTC.test_add_datetime_with_default_value_attribute

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
______ ERROR at setup of MigrationCommandsTC.test_add_drop_cube_and_deps _______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MigrationCommandsTC.test_add_drop_cube_no_deps _______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MigrationCommandsTC.test_add_drop_entity_type ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
______ ERROR at setup of MigrationCommandsTC.test_add_drop_relation_type _______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__________ ERROR at setup of MigrationCommandsTC.test_add_entity_type __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__ ERROR at setup of MigrationCommandsTC.test_add_relation_definition_nortype __

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
____ ERROR at setup of MigrationCommandsTC.test_add_symmetric_relation_type ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MigrationCommandsTC.test_change_attribute_type _______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
____ ERROR at setup of MigrationCommandsTC.test_change_relation_props_final ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__ ERROR at setup of MigrationCommandsTC.test_change_relation_props_non_final __

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsTC.test_drop_chosen_constraints_ctxmanager _

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
___________ ERROR at setup of MigrationCommandsTC.test_drop_dep_cube ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
___ ERROR at setup of MigrationCommandsTC.test_drop_inlined_rdef_delete_data ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsTC.test_drop_relation_definition_existant_rtype

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsTC.test_drop_relation_definition_with_specialization

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_____ ERROR at setup of MigrationCommandsTC.test_drop_required_ctxmanager ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__ ERROR at setup of MigrationCommandsTC.test_drop_required_inlined_relation ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_______ ERROR at setup of MigrationCommandsTC.test_introduce_base_class ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_________ ERROR at setup of MigrationCommandsTC.test_rename_attribute __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
________ ERROR at setup of MigrationCommandsTC.test_rename_entity_type _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__________ ERROR at setup of MigrationCommandsTC.test_rename_relation __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
________ ERROR at setup of MigrationCommandsTC.test_set_size_constraint ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
__________ ERROR at setup of MigrationCommandsTC.test_storage_changed __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
______ ERROR at setup of MigrationCommandsTC.test_sync_schema_props_perms ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsTC.test_sync_schema_props_perms_rqlconstraints

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
_________ ERROR at setup of MigrationCommandsTC.test_workflow_actions __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_add_attribute

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_add_relation_type

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_drop_attribute

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_drop_relation_definition

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_drop_type

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_sync_schema_props_perms_rdef

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_attribute_sync_schema_props_perms_rtype

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_add_relation_definition

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_add_relation_type

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_drop_relation_definition

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_drop_relation_type

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_rename_relation_type

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_sync_schema_props_perms

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_sync_schema_props_perms_on_rdef

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
ERROR at setup of MigrationCommandsComputedTC.test_computed_relation_sync_schema_props_perms_security

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_migractions.py:48:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py'

def startpgcluster(pyfile):
"""Start a postgresql cluster next to pyfile"""
datadir = join(os.path.dirname(pyfile), 'data', 'database',
'pgdb-%s' % os.path.splitext(os.path.basename(pyfile))[0])
if not exists(datadir):
try:
subprocess.check_call(['initdb', '-D', datadir, '-E', 'utf-8', '--locale=C'])

except OSError as err:
if err.errno == errno.ENOENT:
> raise OSError('"initdb" could not be found. '
'You should add the postgresql bin folder to your PATH '
'(/usr/lib/postgresql/9.1/bin for example).')
E OSError: "initdb" could not be found. You should add the postgresql bin folder to your PATH (/usr/lib/postgresql/9.1/bin for example).

cubicweb/devtools/__init__.py:533: OSError
=========================== 47 error in 2.47 seconds ===========================
<br/>

log from execution