log_file.txt

download

40 python2 -m tox --result-json=tox-results.json `python2 -m tox --result-json=tox-results.json` returned with status : 1
output:
GLOB sdist-make: /tmp/tmpVFdEsp/src/345579/setup.py
py27-cubicweb create: /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb
py27-cubicweb installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/test/requirements.txt
py27-cubicweb inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-cubicweb runtests: PYTHONHASHSEED='3827751083'
py27-cubicweb runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/bin/python -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master
Cannot find command 'git'
Storing debug log for failure in /var/lib/narval/.pip/pip.log
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/log/py27-cubicweb-3.log
ERROR: actionid=py27-cubicweb
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/bin/python', '-m', 'pip', 'install', '--upgrade', '--no-deps', '--quiet', 'git+git://github.com/logilab/yapps@master']
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-cubicweb', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/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'}
Cannot find command 'git'
Storing debug log for failure in /var/lib/narval/.pip/pip.log

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/bin/python -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master (see /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/log/py27-cubicweb-3.log)
py27-cubicweb runtests: commands[1] | /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/test
============================= 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 300 items

cubicweb/test/unittest_binary.py .....
cubicweb/test/unittest_cwconfig.py ................
cubicweb/test/unittest_cwctl.py ..
cubicweb/test/unittest_entity.py ........................................................
cubicweb/test/unittest_mail.py .......
cubicweb/test/unittest_migration.py ....
cubicweb/test/unittest_predicates.py ............................
cubicweb/test/unittest_repoapi.py ....
cubicweb/test/unittest_req.py ........
cubicweb/test/unittest_rqlrewrite.py ....................................ss....
cubicweb/test/unittest_rset.py .........................................
cubicweb/test/unittest_rtags.py ...
cubicweb/test/unittest_schema.py .F..F.....................
cubicweb/test/unittest_spa2rql.py sssssssssssss
cubicweb/test/unittest_toolsutils.py ....
cubicweb/test/unittest_uilib.py .................
cubicweb/test/unittest_utils.py ....................
cubicweb/test/unittest_vregistry.py ....

=================================== FAILURES ===================================
_____________________ CubicWebSchemaTC.test_erqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_erqlexpression>

def test_erqlexpression(self):
> self.assertRaises(RQLSyntaxError, ERQLExpression, '1')

cubicweb/test/unittest_schema.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:408: in __init__
RQLExpression.__init__(self, expression, mainvars or 'X', eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py27-cubicweb/local/lib/python2.7/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <rql.parser.HerculeScanner object at 0x7f3ea8d92bd0>
pos = ('<f.4793>', 1, 12), length = 0
out = <_pytest.capture.EncodedFile object at 0x7f3eb57e5510>

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:230: TypeError
_____________________ CubicWebSchemaTC.test_rrqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_rrqlexpression>

def test_rrqlexpression(self):
self.assertRaises(Exception, RRQLExpression, '1')
> self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')

cubicweb/test/unittest_schema.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:482: in __init__
RQLExpression.__init__(self, expression, mainvars, eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py27-cubicweb/local/lib/python2.7/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <rql.parser.HerculeScanner object at 0x7f3ea8f69890>
pos = ('<f.4795>', 1, 14), length = 0
out = <_pytest.capture.EncodedFile object at 0x7f3eb57e5510>

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:230: TypeError
===== 2 failed, 283 passed, 15 skipped, 5 pytest-warnings in 44.35 seconds =====
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/log/py27-cubicweb-4.log
ERROR: actionid=py27-cubicweb
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/test']
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-cubicweb', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/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 300 items

cubicweb/test/unittest_binary.py .....
cubicweb/test/unittest_cwconfig.py ................
cubicweb/test/unittest_cwctl.py ..
cubicweb/test/unittest_entity.py ........................................................
cubicweb/test/unittest_mail.py .......
cubicweb/test/unittest_migration.py ....
cubicweb/test/unittest_predicates.py ............................
cubicweb/test/unittest_repoapi.py ....
cubicweb/test/unittest_req.py ........
cubicweb/test/unittest_rqlrewrite.py ....................................ss....
cubicweb/test/unittest_rset.py .........................................
cubicweb/test/unittest_rtags.py ...
cubicweb/test/unittest_schema.py .F..F.....................
cubicweb/test/unittest_spa2rql.py sssssssssssss
cubicweb/test/unittest_toolsutils.py ....
cubicweb/test/unittest_uilib.py .................
cubicweb/test/unittest_utils.py ....................
cubicweb/test/unittest_vregistry.py ....

=================================== FAILURES ===================================
_____________________ CubicWebSchemaTC.test_erqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_erqlexpression>

def test_erqlexpression(self):
> self.assertRaises(RQLSyntaxError, ERQLExpression, '1')

cubicweb/test/unittest_schema.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:408: in __init__
RQLExpression.__init__(self, expression, mainvars or 'X', eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py27-cubicweb/local/lib/python2.7/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <rql.parser.HerculeScanner object at 0x7f3ea8d92bd0>
pos = ('<f.4793>', 1, 12), length = 0
out = <_pytest.capture.EncodedFile object at 0x7f3eb57e5510>

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:230: TypeError
_____________________ CubicWebSchemaTC.test_rrqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_rrqlexpression>

def test_rrqlexpression(self):
self.assertRaises(Exception, RRQLExpression, '1')
> self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')

cubicweb/test/unittest_schema.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:482: in __init__
RQLExpression.__init__(self, expression, mainvars, eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py27-cubicweb/local/lib/python2.7/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <rql.parser.HerculeScanner object at 0x7f3ea8f69890>
pos = ('<f.4795>', 1, 14), length = 0
out = <_pytest.capture.EncodedFile object at 0x7f3eb57e5510>

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py27-cubicweb/local/lib/python2.7/site-packages/yapps/runtime.py:230: TypeError
===== 2 failed, 283 passed, 15 skipped, 5 pytest-warnings in 44.35 seconds =====

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/test (see /tmp/tmpVFdEsp/src/345579/.tox/py27-cubicweb/log/py27-cubicweb-4.log)
py27-dataimport create: /tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport
py27-dataimport installdeps: -rdev-requirements.txt
py27-dataimport inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-dataimport runtests: PYTHONHASHSEED='3827751083'
py27-dataimport runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test
============================= 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 55 items

cubicweb/dataimport/test/test_csv.py ..
cubicweb/dataimport/test/test_massive_store.py EEEEEEEEEEEEEEEEE
cubicweb/dataimport/test/test_pgstore.py .........
cubicweb/dataimport/test/test_sqlgenstore.py EEE
cubicweb/dataimport/test/test_stores.py .........
cubicweb/dataimport/test/unittest_importer.py ...............

==================================== ERRORS ====================================
_____ ERROR at setup of MassiveObjectStoreWithCustomMDGenStoreTC.test_base _____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_autoflush_metadata _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index_recreation ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity_2 ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eids_seq_range ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_identical_schema __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_index_building ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_massimport_etype_metadata ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_commit_callback _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_rollback_callback ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_simple_insert ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_exception ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_indexes _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 SQLGenImportSimpleTC.test_autoflush_metadata ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_simple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_sqlgenstore_etype_metadata ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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
===================== 35 passed, 20 error in 10.94 seconds =====================
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport/log/py27-dataimport-3.log
ERROR: actionid=py27-dataimport
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test']
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-dataimport', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport/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 55 items

cubicweb/dataimport/test/test_csv.py ..
cubicweb/dataimport/test/test_massive_store.py EEEEEEEEEEEEEEEEE
cubicweb/dataimport/test/test_pgstore.py .........
cubicweb/dataimport/test/test_sqlgenstore.py EEE
cubicweb/dataimport/test/test_stores.py .........
cubicweb/dataimport/test/unittest_importer.py ...............

==================================== ERRORS ====================================
_____ ERROR at setup of MassiveObjectStoreWithCustomMDGenStoreTC.test_base _____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_autoflush_metadata _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index_recreation ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity_2 ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eids_seq_range ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_identical_schema __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_index_building ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_massimport_etype_metadata ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_commit_callback _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_rollback_callback ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_simple_insert ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_exception ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_indexes _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 SQLGenImportSimpleTC.test_autoflush_metadata ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_simple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_sqlgenstore_etype_metadata ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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
===================== 35 passed, 20 error in 10.94 seconds =====================

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test (see /tmp/tmpVFdEsp/src/345579/.tox/py27-dataimport/log/py27-dataimport-3.log)
py27-devtools create: /tmp/tmpVFdEsp/src/345579/.tox/py27-devtools
py27-devtools installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/devtools/test/requirements.txt
py27-devtools inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-devtools runtests: PYTHONHASHSEED='3827751083'
py27-devtools runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-devtools/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/devtools/test
============================= 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 52 items

cubicweb/devtools/test/unittest_dbfill.py .......s
cubicweb/devtools/test/unittest_devctl.py ..
cubicweb/devtools/test/unittest_fill.py ...
cubicweb/devtools/test/unittest_httptest.py ..........
cubicweb/devtools/test/unittest_i18n.py .
cubicweb/devtools/test/unittest_qunit.py ..
cubicweb/devtools/test/unittest_testlib.py ......................
cubicweb/devtools/test/unittest_webtest.py ....

=========== 51 passed, 1 skipped, 1 pytest-warnings in 34.08 seconds ===========
py27-entities create: /tmp/tmpVFdEsp/src/345579/.tox/py27-entities
py27-entities installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/entities/test/requirements.txt
py27-entities inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-entities runtests: PYTHONHASHSEED='3827751083'
py27-entities runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-entities/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/entities/test
============================= 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 44 items

cubicweb/entities/test/unittest_base.py .................
cubicweb/entities/test/unittest_wfobjs.py ...........................

========================== 44 passed in 19.35 seconds ==========================
py27-etwist create: /tmp/tmpVFdEsp/src/345579/.tox/py27-etwist
py27-etwist installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/etwist/test/requirements.txt
py27-etwist inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-etwist runtests: PYTHONHASHSEED='3827751083'
py27-etwist runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-etwist/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/etwist/test
============================= 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 1 items

cubicweb/etwist/test/unittest_server.py .

=========================== 1 passed in 7.98 seconds ===========================
py27-ext create: /tmp/tmpVFdEsp/src/345579/.tox/py27-ext
py27-ext installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/ext/test/requirements.txt
py27-ext inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-ext runtests: PYTHONHASHSEED='3827751083'
py27-ext runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-ext/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/ext/test
============================= 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 17 items

cubicweb/ext/test/unittest_rest.py .................

========================== 17 passed in 7.11 seconds ===========================
py27-hooks create: /tmp/tmpVFdEsp/src/345579/.tox/py27-hooks
py27-hooks installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/requirements.txt
py27-hooks inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-hooks runtests: PYTHONHASHSEED='3827751083'
py27-hooks runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-hooks/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test
============================= 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 61 items

cubicweb/hooks/test/unittest_bookmarks.py .
cubicweb/hooks/test/unittest_hooks.py ...............
cubicweb/hooks/test/unittest_integrity.py ...........
cubicweb/hooks/test/unittest_notification.py .
cubicweb/hooks/test/unittest_security.py .
cubicweb/hooks/test/unittest_synccomputed.py .......
cubicweb/hooks/test/unittest_syncschema.py EEEEEEEEEEEEEEEEE
cubicweb/hooks/test/unittest_syncsession.py ........

==================================== ERRORS ====================================
_ ERROR at setup of SchemaModificationHooksTC.test_add_attribute_to_base_class _

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_add_constraint ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_base _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltext_container __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltextindexed ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_indexed_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_is_instance_of_insertions __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_nordefs ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_somerdefs ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_nonregr_user_edit_itself ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_1 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_2 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_1 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_2 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_uninline_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_unique_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_update_constraint ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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
===================== 44 passed, 17 error in 19.19 seconds =====================
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py27-hooks/log/py27-hooks-3.log
ERROR: actionid=py27-hooks
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py27-hooks/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test']
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-hooks', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py27-hooks/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 61 items

cubicweb/hooks/test/unittest_bookmarks.py .
cubicweb/hooks/test/unittest_hooks.py ...............
cubicweb/hooks/test/unittest_integrity.py ...........
cubicweb/hooks/test/unittest_notification.py .
cubicweb/hooks/test/unittest_security.py .
cubicweb/hooks/test/unittest_synccomputed.py .......
cubicweb/hooks/test/unittest_syncschema.py EEEEEEEEEEEEEEEEE
cubicweb/hooks/test/unittest_syncsession.py ........

==================================== ERRORS ====================================
_ ERROR at setup of SchemaModificationHooksTC.test_add_attribute_to_base_class _

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_add_constraint ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_base _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltext_container __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltextindexed ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_indexed_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_is_instance_of_insertions __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_nordefs ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_somerdefs ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_nonregr_user_edit_itself ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_1 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_2 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_1 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_2 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_uninline_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_unique_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_update_constraint ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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
===================== 44 passed, 17 error in 19.19 seconds =====================

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py27-hooks/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test (see /tmp/tmpVFdEsp/src/345579/.tox/py27-hooks/log/py27-hooks-3.log)
py27-server create: /tmp/tmpVFdEsp/src/345579/.tox/py27-server
py27-server installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/requirements.txt
py27-server inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-server runtests: PYTHONHASHSEED='3827751083'
py27-server runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-server/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test --ignore=/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py
============================= 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 545 items

cubicweb/server/test/unittest_checkintegrity.py ....E
cubicweb/server/test/unittest_datafeed.py ....
cubicweb/server/test/unittest_hook.py .........
cubicweb/server/test/unittest_ldapsource.py ............
cubicweb/server/test/unittest_postgres.py EEEEEEEE
cubicweb/server/test/unittest_querier.py ................................s........................s...............................................................................................
cubicweb/server/test/unittest_repository.py ..........................................
cubicweb/server/test/unittest_rql2sql.py ....................................................................s....................................................................................
cubicweb/server/test/unittest_rqlannotation.py ..........................................................
cubicweb/server/test/unittest_schema2sql.py .
cubicweb/server/test/unittest_schemaserial.py .................
cubicweb/server/test/unittest_security.py .......................................
cubicweb/server/test/unittest_serverctl.py ..
cubicweb/server/test/unittest_sources_native.py .
cubicweb/server/test/unittest_sqlutils.py ...
cubicweb/server/test/unittest_ssplanner.py ..
cubicweb/server/test/unittest_storage.py ................
cubicweb/server/test/unittest_tools.py .
cubicweb/server/test/unittest_undo.py ..................
cubicweb/server/test/unittest_utils.py .

==================================== ERRORS ====================================
____________ ERROR at setup of PGCheckIndexesTC.test_check_indexes _____________

cls = <class 'unittest_checkintegrity.PGCheckIndexesTC'>

@classmethod
def setUpClass(cls):
> startpgcluster(__file__)

cubicweb/server/test/unittest_checkintegrity.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_checkintegrity.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 PostgresFTITC.test_attr_weight _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_constraint_validationerror ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_eid_range ________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_entity_weight ______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_occurence_count _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_tz_datetime _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresStatementTimeoutTC.test_statement_timeout ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresLimitSizeTC.test __________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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
===== 533 passed, 3 skipped, 7 pytest-warnings, 9 error in 186.43 seconds ======
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py27-server/log/py27-server-3.log
ERROR: actionid=py27-server
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py27-server/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test', '--ignore=/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-server', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py27-server/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 545 items

cubicweb/server/test/unittest_checkintegrity.py ....E
cubicweb/server/test/unittest_datafeed.py ....
cubicweb/server/test/unittest_hook.py .........
cubicweb/server/test/unittest_ldapsource.py ............
cubicweb/server/test/unittest_postgres.py EEEEEEEE
cubicweb/server/test/unittest_querier.py ................................s........................s...............................................................................................
cubicweb/server/test/unittest_repository.py ..........................................
cubicweb/server/test/unittest_rql2sql.py ....................................................................s....................................................................................
cubicweb/server/test/unittest_rqlannotation.py ..........................................................
cubicweb/server/test/unittest_schema2sql.py .
cubicweb/server/test/unittest_schemaserial.py .................
cubicweb/server/test/unittest_security.py .......................................
cubicweb/server/test/unittest_serverctl.py ..
cubicweb/server/test/unittest_sources_native.py .
cubicweb/server/test/unittest_sqlutils.py ...
cubicweb/server/test/unittest_ssplanner.py ..
cubicweb/server/test/unittest_storage.py ................
cubicweb/server/test/unittest_tools.py .
cubicweb/server/test/unittest_undo.py ..................
cubicweb/server/test/unittest_utils.py .

==================================== ERRORS ====================================
____________ ERROR at setup of PGCheckIndexesTC.test_check_indexes _____________

cls = <class 'unittest_checkintegrity.PGCheckIndexesTC'>

@classmethod
def setUpClass(cls):
> startpgcluster(__file__)

cubicweb/server/test/unittest_checkintegrity.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_checkintegrity.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 PostgresFTITC.test_attr_weight _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_constraint_validationerror ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_eid_range ________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_entity_weight ______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_occurence_count _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_tz_datetime _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresStatementTimeoutTC.test_statement_timeout ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresLimitSizeTC.test __________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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
===== 533 passed, 3 skipped, 7 pytest-warnings, 9 error in 186.43 seconds ======

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py27-server/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test --ignore=/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py (see /tmp/tmpVFdEsp/src/345579/.tox/py27-server/log/py27-server-3.log)
py27-migractions create: /tmp/tmpVFdEsp/src/345579/.tox/py27-migractions
py27-migractions installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/requirements.txt
py27-migractions inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-migractions runtests: PYTHONHASHSEED='3827751083'
py27-migractions runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py
============================= 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 ===========================
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/log/py27-migractions-3.log
ERROR: 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 ===========================

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py (see /tmp/tmpVFdEsp/src/345579/.tox/py27-migractions/log/py27-migractions-3.log)
py27-sobjects create: /tmp/tmpVFdEsp/src/345579/.tox/py27-sobjects
py27-sobjects installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/sobjects/test/requirements.txt
py27-sobjects inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-sobjects runtests: PYTHONHASHSEED='3827751083'
py27-sobjects runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-sobjects/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/sobjects/test
============================= 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 18 items

cubicweb/sobjects/test/unittest_cwxmlparser.py .....
cubicweb/sobjects/test/unittest_email.py ....
cubicweb/sobjects/test/unittest_notification.py ..
cubicweb/sobjects/test/unittest_register_user.py .....
cubicweb/sobjects/test/unittest_supervising.py ..

========================== 18 passed in 10.03 seconds ==========================
py27-web create: /tmp/tmpVFdEsp/src/345579/.tox/py27-web
py27-web installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/web/test/requirements.txt
py27-web inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-web runtests: PYTHONHASHSEED='3827751083'
py27-web runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-web/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/web/test
============================= 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 367 items

cubicweb/web/test/test_jscript.py .
cubicweb/web/test/test_views.py .......
cubicweb/web/test/unittest_application.py ............................
cubicweb/web/test/unittest_breadcrumbs.py .
cubicweb/web/test/unittest_controller.py ..
cubicweb/web/test/unittest_facet.py ....................
cubicweb/web/test/unittest_form.py ................
cubicweb/web/test/unittest_formfields.py ..........
cubicweb/web/test/unittest_formwidgets.py ...
cubicweb/web/test/unittest_http.py ...........................
cubicweb/web/test/unittest_http_headers.py .
cubicweb/web/test/unittest_idownloadable.py ......
cubicweb/web/test/unittest_magicsearch.py ..................
cubicweb/web/test/unittest_propertysheet.py .
cubicweb/web/test/unittest_reledit.py .s.
cubicweb/web/test/unittest_request.py ....
cubicweb/web/test/unittest_uicfg.py .........
cubicweb/web/test/unittest_urlpublisher.py .............
cubicweb/web/test/unittest_urlrewrite.py ........
cubicweb/web/test/unittest_views_actions.py ..
cubicweb/web/test/unittest_views_apacherewrite.py .
cubicweb/web/test/unittest_views_basecontrollers.py ....................................................................
cubicweb/web/test/unittest_views_basetemplates.py ...
cubicweb/web/test/unittest_views_baseviews.py .............
cubicweb/web/test/unittest_views_csv.py ..
cubicweb/web/test/unittest_views_cwsources.py .
cubicweb/web/test/unittest_views_editforms.py ..................
cubicweb/web/test/unittest_views_errorform.py ....
cubicweb/web/test/unittest_views_forms.py ...
cubicweb/web/test/unittest_views_json.py ..........
cubicweb/web/test/unittest_views_navigation.py ...........
cubicweb/web/test/unittest_views_pyviews.py ..
cubicweb/web/test/unittest_views_searchrestriction.py ........
cubicweb/web/test/unittest_views_staticcontrollers.py ......
cubicweb/web/test/unittest_views_treeview.py .
cubicweb/web/test/unittest_views_xmlrss.py .
cubicweb/web/test/unittest_viewselector.py .......................
cubicweb/web/test/unittest_web.py .........
cubicweb/web/test/unittest_webconfig.py ...

========== 366 passed, 1 skipped, 1 pytest-warnings in 121.11 seconds ==========
py27-wsgi create: /tmp/tmpVFdEsp/src/345579/.tox/py27-wsgi
py27-wsgi installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/wsgi/test/requirements.txt
py27-wsgi inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py27-wsgi runtests: PYTHONHASHSEED='3827751083'
py27-wsgi runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py27-wsgi/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/wsgi/test
============================= 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 13 items

cubicweb/wsgi/test/unittest_wsgi.py .............

========================== 13 passed in 7.08 seconds ===========================
py34-cubicweb create: /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb
py34-cubicweb installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/test/requirements.txt
py34-cubicweb inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-cubicweb runtests: PYTHONHASHSEED='3827751083'
py34-cubicweb runtests: commands[0] | touch /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/share/cubicweb/cubes/__init__.py
py34-cubicweb runtests: commands[1] | /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/bin/python -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master
Cannot find command 'git'
Storing debug log for failure in /var/lib/narval/.pip/pip.log
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/log/py34-cubicweb-4.log
ERROR: actionid=py34-cubicweb
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/bin/python', '-m', 'pip', 'install', '--upgrade', '--no-deps', '--quiet', 'git+git://github.com/logilab/yapps@master']
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/py34-cubicweb', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/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'}
Cannot find command 'git'
Storing debug log for failure in /var/lib/narval/.pip/pip.log

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/bin/python -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master (see /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/log/py34-cubicweb-4.log)
py34-cubicweb runtests: commands[2] | /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 300 items

cubicweb/test/unittest_binary.py .....
cubicweb/test/unittest_cwconfig.py ................
cubicweb/test/unittest_cwctl.py ..
cubicweb/test/unittest_entity.py ........................................................
cubicweb/test/unittest_mail.py .......
cubicweb/test/unittest_migration.py ....
cubicweb/test/unittest_predicates.py ............................
cubicweb/test/unittest_repoapi.py ....
cubicweb/test/unittest_req.py ........
cubicweb/test/unittest_rqlrewrite.py ....................................ss....
cubicweb/test/unittest_rset.py .........................................
cubicweb/test/unittest_rtags.py ...
cubicweb/test/unittest_schema.py .F..F.....................
cubicweb/test/unittest_spa2rql.py sssssssssssss
cubicweb/test/unittest_toolsutils.py ....
cubicweb/test/unittest_uilib.py .................
cubicweb/test/unittest_utils.py ....................
cubicweb/test/unittest_vregistry.py ....

=================================== FAILURES ===================================
_____________________ CubicWebSchemaTC.test_erqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_erqlexpression>

def test_erqlexpression(self):
> self.assertRaises(RQLSyntaxError, ERQLExpression, '1')

cubicweb/test/unittest_schema.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:408: in __init__
RQLExpression.__init__(self, expression, mainvars or 'X', eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py34-cubicweb/lib/python3.4/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:230: TypeError
_____________________ CubicWebSchemaTC.test_rrqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_rrqlexpression>

def test_rrqlexpression(self):
self.assertRaises(Exception, RRQLExpression, '1')
> self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')

cubicweb/test/unittest_schema.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:482: in __init__
RQLExpression.__init__(self, expression, mainvars, eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py34-cubicweb/lib/python3.4/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:230: TypeError
===== 2 failed, 283 passed, 15 skipped, 5 pytest-warnings in 39.16 seconds =====
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/log/py34-cubicweb-5.log
ERROR: actionid=py34-cubicweb
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/test']
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/py34-cubicweb', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/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 linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 300 items

cubicweb/test/unittest_binary.py .....
cubicweb/test/unittest_cwconfig.py ................
cubicweb/test/unittest_cwctl.py ..
cubicweb/test/unittest_entity.py ........................................................
cubicweb/test/unittest_mail.py .......
cubicweb/test/unittest_migration.py ....
cubicweb/test/unittest_predicates.py ............................
cubicweb/test/unittest_repoapi.py ....
cubicweb/test/unittest_req.py ........
cubicweb/test/unittest_rqlrewrite.py ....................................ss....
cubicweb/test/unittest_rset.py .........................................
cubicweb/test/unittest_rtags.py ...
cubicweb/test/unittest_schema.py .F..F.....................
cubicweb/test/unittest_spa2rql.py sssssssssssss
cubicweb/test/unittest_toolsutils.py ....
cubicweb/test/unittest_uilib.py .................
cubicweb/test/unittest_utils.py ....................
cubicweb/test/unittest_vregistry.py ....

=================================== FAILURES ===================================
_____________________ CubicWebSchemaTC.test_erqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_erqlexpression>

def test_erqlexpression(self):
> self.assertRaises(RQLSyntaxError, ERQLExpression, '1')

cubicweb/test/unittest_schema.py:132:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:408: in __init__
RQLExpression.__init__(self, expression, mainvars or 'X', eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py34-cubicweb/lib/python3.4/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:230: TypeError
_____________________ CubicWebSchemaTC.test_rrqlexpression _____________________

self = <unittest_schema.CubicWebSchemaTC testMethod=test_rrqlexpression>

def test_rrqlexpression(self):
self.assertRaises(Exception, RRQLExpression, '1')
> self.assertRaises(RQLSyntaxError, RRQLExpression, 'O X Y')

cubicweb/test/unittest_schema.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cubicweb/schema.py:482: in __init__
RQLExpression.__init__(self, expression, mainvars, eid)
cubicweb/schema.py:231: in __init__
self.expression = normalize_expression(expression)
cubicweb/schema.py:152: in normalize_expression
union = parse(u'Any 1 WHERE %s' % rqlstring).as_string()
.tox/py34-cubicweb/lib/python3.4/site-packages/rql/__init__.py:236: in parse
print_error(ex, parser._scanner)
.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:420: in print_error
scanner.print_line_with_pointer(pos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

def print_line_with_pointer(self, pos, length=0, out=sys.stderr):
"""Print the line of 'text' that includes position 'p',
along with a second line with a single caret (^) at position p"""

file,line,p = pos
if file != self.filename:
if self.stack: return self.stack.print_line_with_pointer(pos,length=length,out=out)
print >>out, "(%s: not in input buffer)" % file
return

text = self.input
p += length-1 # starts at pos 1

origline=line
line -= self.del_line
spos=0
if line > 0:
while 1:
line = line - 1
try:
cr = text.index("\n",spos)
except ValueError:
if line:
text = ""
break
if line == 0:
text = text[spos:cr]
break
spos = cr+1
else:
print >>out, "(%s:%d not in input buffer)" % (file,origline)
return

# Now try printing part of the line
text = text[max(p-80, 0):p+80]
p = p - max(p-80, 0)

# Strip to the left
i = text[:p].rfind('\n')
j = text[:p].rfind('\r')
if i < 0 or (0 <= j < i): i = j
if 0 <= i < p:
p = p - i - 1
text = text[i+1:]

# Strip to the right
i = text.find('\n', p)
j = text.find('\r', p)
if i < 0 or (0 <= j < i): i = j
if i >= 0:
text = text[:i]

# Now shorten the text
while len(text) > 70 and p > 60:
# Cut off 10 chars
text = "..." + text[10:]
p = p - 7

# Now print the string, along with an indicator
> print >>out, '> ',text
E TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and 'EncodedFile'

.tox/py34-cubicweb/lib/python3.4/site-packages/yapps/runtime.py:230: TypeError
===== 2 failed, 283 passed, 15 skipped, 5 pytest-warnings in 39.16 seconds =====

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/test (see /tmp/tmpVFdEsp/src/345579/.tox/py34-cubicweb/log/py34-cubicweb-5.log)
py34-dataimport create: /tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport
py34-dataimport installdeps: -rdev-requirements.txt
py34-dataimport inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-dataimport runtests: PYTHONHASHSEED='3827751083'
py34-dataimport runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 55 items

cubicweb/dataimport/test/test_csv.py ..
cubicweb/dataimport/test/test_massive_store.py EEEEEEEEEEEEEEEEE
cubicweb/dataimport/test/test_pgstore.py .........
cubicweb/dataimport/test/test_sqlgenstore.py EEE
cubicweb/dataimport/test/test_stores.py .........
cubicweb/dataimport/test/unittest_importer.py ...............

==================================== ERRORS ====================================
_____ ERROR at setup of MassiveObjectStoreWithCustomMDGenStoreTC.test_base _____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_autoflush_metadata _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index_recreation ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity_2 ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eids_seq_range ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_identical_schema __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_index_building ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_massimport_etype_metadata ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_commit_callback _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_rollback_callback ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_simple_insert ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_exception ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_indexes _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 SQLGenImportSimpleTC.test_autoflush_metadata ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_simple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_sqlgenstore_etype_metadata ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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
===================== 35 passed, 20 error in 6.69 seconds ======================
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/log/py34-dataimport-3.log
ERROR: actionid=py34-dataimport
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test']
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/py34-dataimport', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/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 linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 55 items

cubicweb/dataimport/test/test_csv.py ..
cubicweb/dataimport/test/test_massive_store.py EEEEEEEEEEEEEEEEE
cubicweb/dataimport/test/test_pgstore.py .........
cubicweb/dataimport/test/test_sqlgenstore.py EEE
cubicweb/dataimport/test/test_stores.py .........
cubicweb/dataimport/test/unittest_importer.py ...............

==================================== ERRORS ====================================
_____ ERROR at setup of MassiveObjectStoreWithCustomMDGenStoreTC.test_base _____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_autoflush_metadata _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_drop_index_recreation ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eid_entity_2 ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_eids_seq_range ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_identical_schema __________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_index_building ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_massimport_etype_metadata ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_multiple_insert_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_commit_callback _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_on_rollback_callback ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_simple_insert ____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_exception ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 MassImportSimpleTC.test_slave_mode_indexes _________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_massive_store.py:31:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_massive_store.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 SQLGenImportSimpleTC.test_autoflush_metadata ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_simple_insert ___________

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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 SQLGenImportSimpleTC.test_sqlgenstore_etype_metadata ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/dataimport/test/test_sqlgenstore.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test/test_sqlgenstore.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
===================== 35 passed, 20 error in 6.69 seconds ======================

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/dataimport/test (see /tmp/tmpVFdEsp/src/345579/.tox/py34-dataimport/log/py34-dataimport-3.log)
py34-devtools create: /tmp/tmpVFdEsp/src/345579/.tox/py34-devtools
py34-devtools installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/devtools/test/requirements.txt
py34-devtools inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-devtools runtests: PYTHONHASHSEED='3827751083'
py34-devtools runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py34-devtools/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/devtools/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 52 items

cubicweb/devtools/test/unittest_dbfill.py .......s
cubicweb/devtools/test/unittest_devctl.py ..
cubicweb/devtools/test/unittest_fill.py ...
cubicweb/devtools/test/unittest_httptest.py sssss.....
cubicweb/devtools/test/unittest_i18n.py .
cubicweb/devtools/test/unittest_qunit.py ..
cubicweb/devtools/test/unittest_testlib.py ......................
cubicweb/devtools/test/unittest_webtest.py ....

=========== 46 passed, 6 skipped, 1 pytest-warnings in 16.88 seconds ===========
py34-entities create: /tmp/tmpVFdEsp/src/345579/.tox/py34-entities
py34-entities installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/entities/test/requirements.txt
py34-entities inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-entities runtests: PYTHONHASHSEED='3827751083'
py34-entities runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py34-entities/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/entities/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 44 items

cubicweb/entities/test/unittest_base.py .................
cubicweb/entities/test/unittest_wfobjs.py ...........................

========================== 44 passed in 30.69 seconds ==========================
py34-ext create: /tmp/tmpVFdEsp/src/345579/.tox/py34-ext
py34-ext installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/ext/test/requirements.txt
py34-ext inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-ext runtests: PYTHONHASHSEED='3827751083'
py34-ext runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py34-ext/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/ext/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 17 items

cubicweb/ext/test/unittest_rest.py .................

========================== 17 passed in 1.30 seconds ===========================
py34-hooks create: /tmp/tmpVFdEsp/src/345579/.tox/py34-hooks
py34-hooks installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/requirements.txt
py34-hooks inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-hooks runtests: PYTHONHASHSEED='3827751083'
py34-hooks runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py34-hooks/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 61 items

cubicweb/hooks/test/unittest_bookmarks.py .
cubicweb/hooks/test/unittest_hooks.py ...............
cubicweb/hooks/test/unittest_integrity.py ...........
cubicweb/hooks/test/unittest_notification.py .
cubicweb/hooks/test/unittest_security.py .
cubicweb/hooks/test/unittest_synccomputed.py .......
cubicweb/hooks/test/unittest_syncschema.py EEEEEEEEEEEEEEEEE
cubicweb/hooks/test/unittest_syncsession.py ........

==================================== ERRORS ====================================
_ ERROR at setup of SchemaModificationHooksTC.test_add_attribute_to_base_class _

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_add_constraint ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_base _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltext_container __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltextindexed ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_indexed_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_is_instance_of_insertions __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_nordefs ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_somerdefs ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_nonregr_user_edit_itself ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_1 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_2 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_1 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_2 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_uninline_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_unique_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_update_constraint ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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
===================== 44 passed, 17 error in 9.21 seconds ======================
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py34-hooks/log/py34-hooks-3.log
ERROR: actionid=py34-hooks
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-hooks/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test']
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/py34-hooks', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-hooks/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 linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 61 items

cubicweb/hooks/test/unittest_bookmarks.py .
cubicweb/hooks/test/unittest_hooks.py ...............
cubicweb/hooks/test/unittest_integrity.py ...........
cubicweb/hooks/test/unittest_notification.py .
cubicweb/hooks/test/unittest_security.py .
cubicweb/hooks/test/unittest_synccomputed.py .......
cubicweb/hooks/test/unittest_syncschema.py EEEEEEEEEEEEEEEEE
cubicweb/hooks/test/unittest_syncsession.py ........

==================================== ERRORS ====================================
_ ERROR at setup of SchemaModificationHooksTC.test_add_attribute_to_base_class _

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_add_constraint ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_base _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltext_container __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_change_fulltextindexed ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_indexed_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_is_instance_of_insertions __

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_nordefs ____

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_metartype_with_somerdefs ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_nonregr_user_edit_itself ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_1 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_perms_synchronization_2 ___

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_1 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_required_change_2 ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_uninline_relation ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_unique_change ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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 SchemaModificationHooksTC.test_update_constraint ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/hooks/test/unittest_syncschema.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test/unittest_syncschema.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
===================== 44 passed, 17 error in 9.21 seconds ======================

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py34-hooks/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/hooks/test (see /tmp/tmpVFdEsp/src/345579/.tox/py34-hooks/log/py34-hooks-3.log)
py34-server create: /tmp/tmpVFdEsp/src/345579/.tox/py34-server
py34-server installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/requirements.txt
py34-server inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-server runtests: PYTHONHASHSEED='3827751083'
py34-server runtests: commands[0] | touch /tmp/tmpVFdEsp/src/345579/.tox/py34-server/share/cubicweb/cubes/__init__.py
py34-server runtests: commands[1] | /tmp/tmpVFdEsp/src/345579/.tox/py34-server/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test --ignore=/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 545 items

cubicweb/server/test/unittest_checkintegrity.py ....E
cubicweb/server/test/unittest_datafeed.py ....
cubicweb/server/test/unittest_hook.py .........
cubicweb/server/test/unittest_ldapsource.py ............
cubicweb/server/test/unittest_postgres.py EEEEEEEE
cubicweb/server/test/unittest_querier.py ................................s........................s...............................................................................................
cubicweb/server/test/unittest_repository.py ..........................................
cubicweb/server/test/unittest_rql2sql.py ....................................................................s....................................................................................
cubicweb/server/test/unittest_rqlannotation.py ..........................................................
cubicweb/server/test/unittest_schema2sql.py .
cubicweb/server/test/unittest_schemaserial.py .................
cubicweb/server/test/unittest_security.py .......................................
cubicweb/server/test/unittest_serverctl.py ..
cubicweb/server/test/unittest_sources_native.py .
cubicweb/server/test/unittest_sqlutils.py ...
cubicweb/server/test/unittest_ssplanner.py ..
cubicweb/server/test/unittest_storage.py ................
cubicweb/server/test/unittest_tools.py .
cubicweb/server/test/unittest_undo.py ..................
cubicweb/server/test/unittest_utils.py .

==================================== ERRORS ====================================
____________ ERROR at setup of PGCheckIndexesTC.test_check_indexes _____________

cls = <class 'unittest_checkintegrity.PGCheckIndexesTC'>

@classmethod
def setUpClass(cls):
> startpgcluster(__file__)

cubicweb/server/test/unittest_checkintegrity.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_checkintegrity.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 PostgresFTITC.test_attr_weight _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_constraint_validationerror ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_eid_range ________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_entity_weight ______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_occurence_count _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_tz_datetime _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresStatementTimeoutTC.test_statement_timeout ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresLimitSizeTC.test __________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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
===== 533 passed, 3 skipped, 7 pytest-warnings, 9 error in 226.59 seconds ======
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py34-server/log/py34-server-4.log
ERROR: actionid=py34-server
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-server/bin/python', '-m', 'pytest', '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test', '--ignore=/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/py34-server', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-server/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 linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 545 items

cubicweb/server/test/unittest_checkintegrity.py ....E
cubicweb/server/test/unittest_datafeed.py ....
cubicweb/server/test/unittest_hook.py .........
cubicweb/server/test/unittest_ldapsource.py ............
cubicweb/server/test/unittest_postgres.py EEEEEEEE
cubicweb/server/test/unittest_querier.py ................................s........................s...............................................................................................
cubicweb/server/test/unittest_repository.py ..........................................
cubicweb/server/test/unittest_rql2sql.py ....................................................................s....................................................................................
cubicweb/server/test/unittest_rqlannotation.py ..........................................................
cubicweb/server/test/unittest_schema2sql.py .
cubicweb/server/test/unittest_schemaserial.py .................
cubicweb/server/test/unittest_security.py .......................................
cubicweb/server/test/unittest_serverctl.py ..
cubicweb/server/test/unittest_sources_native.py .
cubicweb/server/test/unittest_sqlutils.py ...
cubicweb/server/test/unittest_ssplanner.py ..
cubicweb/server/test/unittest_storage.py ................
cubicweb/server/test/unittest_tools.py .
cubicweb/server/test/unittest_undo.py ..................
cubicweb/server/test/unittest_utils.py .

==================================== ERRORS ====================================
____________ ERROR at setup of PGCheckIndexesTC.test_check_indexes _____________

cls = <class 'unittest_checkintegrity.PGCheckIndexesTC'>

@classmethod
def setUpClass(cls):
> startpgcluster(__file__)

cubicweb/server/test/unittest_checkintegrity.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_checkintegrity.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 PostgresFTITC.test_attr_weight _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_constraint_validationerror ________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_eid_range ________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_entity_weight ______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_occurence_count _____________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresFTITC.test_tz_datetime _______________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresStatementTimeoutTC.test_statement_timeout ______

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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 PostgresLimitSizeTC.test __________________

def setUpModule():
> startpgcluster(__file__)

cubicweb/server/test/unittest_postgres.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

pyfile = '/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_postgres.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
===== 533 passed, 3 skipped, 7 pytest-warnings, 9 error in 226.59 seconds ======

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py34-server/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test --ignore=/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py (see /tmp/tmpVFdEsp/src/345579/.tox/py34-server/log/py34-server-4.log)
py34-migractions create: /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions
py34-migractions installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/server/test/requirements.txt
py34-migractions inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-migractions runtests: PYTHONHASHSEED='3827751083'
py34-migractions runtests: commands[0] | touch /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/share/cubicweb/cubes/__init__.py
py34-migractions runtests: commands[1] | /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py
============================= test session starts ==============================
platform linux -- Python 3.4.2, 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.28 seconds ===========================
ERROR: invocation failed (exit code 1), logfile: /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/log/py34-migractions-4.log
ERROR: actionid=py34-migractions
msg=runtests
cmdargs=['/tmp/tmpVFdEsp/src/345579/.tox/py34-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/py34-migractions', 'PYTHONHASHSEED': '3827751083', 'PATH': '/tmp/tmpVFdEsp/src/345579/.tox/py34-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 linux -- Python 3.4.2, 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.28 seconds ===========================

ERROR: InvocationError: /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/server/test/unittest_migractions.py (see /tmp/tmpVFdEsp/src/345579/.tox/py34-migractions/log/py34-migractions-4.log)
py34-sobjects create: /tmp/tmpVFdEsp/src/345579/.tox/py34-sobjects
py34-sobjects installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/sobjects/test/requirements.txt
py34-sobjects inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-sobjects runtests: PYTHONHASHSEED='3827751083'
py34-sobjects runtests: commands[0] | touch /tmp/tmpVFdEsp/src/345579/.tox/py34-sobjects/share/cubicweb/cubes/__init__.py
py34-sobjects runtests: commands[1] | /tmp/tmpVFdEsp/src/345579/.tox/py34-sobjects/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/sobjects/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 18 items

cubicweb/sobjects/test/unittest_cwxmlparser.py .....
cubicweb/sobjects/test/unittest_email.py ....
cubicweb/sobjects/test/unittest_notification.py ..
cubicweb/sobjects/test/unittest_register_user.py .....
cubicweb/sobjects/test/unittest_supervising.py ..

========================== 18 passed in 10.39 seconds ==========================
py34-web create: /tmp/tmpVFdEsp/src/345579/.tox/py34-web
py34-web installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/web/test/requirements.txt
py34-web inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-web runtests: PYTHONHASHSEED='3827751083'
py34-web runtests: commands[0] | touch /tmp/tmpVFdEsp/src/345579/.tox/py34-web/share/cubicweb/cubes/__init__.py
py34-web runtests: commands[1] | /tmp/tmpVFdEsp/src/345579/.tox/py34-web/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/web/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 367 items

cubicweb/web/test/test_jscript.py .
cubicweb/web/test/test_views.py .......
cubicweb/web/test/unittest_application.py ............................
cubicweb/web/test/unittest_breadcrumbs.py .
cubicweb/web/test/unittest_controller.py ..
cubicweb/web/test/unittest_facet.py ....................
cubicweb/web/test/unittest_form.py ................
cubicweb/web/test/unittest_formfields.py ..........
cubicweb/web/test/unittest_formwidgets.py ...
cubicweb/web/test/unittest_http.py ...........................
cubicweb/web/test/unittest_http_headers.py .
cubicweb/web/test/unittest_idownloadable.py ......
cubicweb/web/test/unittest_magicsearch.py ..................
cubicweb/web/test/unittest_propertysheet.py .
cubicweb/web/test/unittest_reledit.py .s.
cubicweb/web/test/unittest_request.py ....
cubicweb/web/test/unittest_uicfg.py .........
cubicweb/web/test/unittest_urlpublisher.py .............
cubicweb/web/test/unittest_urlrewrite.py ........
cubicweb/web/test/unittest_views_actions.py ..
cubicweb/web/test/unittest_views_apacherewrite.py .
cubicweb/web/test/unittest_views_basecontrollers.py ..................................................................ss
cubicweb/web/test/unittest_views_basetemplates.py ...
cubicweb/web/test/unittest_views_baseviews.py .............
cubicweb/web/test/unittest_views_csv.py ..
cubicweb/web/test/unittest_views_cwsources.py .
cubicweb/web/test/unittest_views_editforms.py ..................
cubicweb/web/test/unittest_views_errorform.py ....
cubicweb/web/test/unittest_views_forms.py ...
cubicweb/web/test/unittest_views_json.py ..........
cubicweb/web/test/unittest_views_navigation.py ...........
cubicweb/web/test/unittest_views_pyviews.py ..
cubicweb/web/test/unittest_views_searchrestriction.py ........
cubicweb/web/test/unittest_views_staticcontrollers.py ......
cubicweb/web/test/unittest_views_treeview.py .
cubicweb/web/test/unittest_views_xmlrss.py .
cubicweb/web/test/unittest_viewselector.py .......................
cubicweb/web/test/unittest_web.py .........
cubicweb/web/test/unittest_webconfig.py ...

========== 364 passed, 3 skipped, 1 pytest-warnings in 110.88 seconds ==========
py34-wsgi create: /tmp/tmpVFdEsp/src/345579/.tox/py34-wsgi
py34-wsgi installdeps: -rdev-requirements.txt, -r/tmp/tmpVFdEsp/src/345579/cubicweb/wsgi/test/requirements.txt
py34-wsgi inst: /tmp/tmpVFdEsp/src/345579/.tox/dist/cubicweb-3.23.2.zip
py34-wsgi runtests: PYTHONHASHSEED='3827751083'
py34-wsgi runtests: commands[0] | /tmp/tmpVFdEsp/src/345579/.tox/py34-wsgi/bin/python -m pytest /tmp/tmpVFdEsp/src/345579/cubicweb/wsgi/test
============================= test session starts ==============================
platform linux -- Python 3.4.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /tmp/tmpVFdEsp/src/345579, inifile: tox.ini
collected 13 items

cubicweb/wsgi/test/unittest_wsgi.py .............

========================== 13 passed in 1.26 seconds ===========================
___________________________________ summary ____________________________________
ERROR: py27-cubicweb: commands failed
ERROR: py27-dataimport: commands failed
py27-devtools: commands succeeded
py27-entities: commands succeeded
py27-etwist: commands succeeded
py27-ext: commands succeeded
ERROR: py27-hooks: commands failed
ERROR: py27-server: commands failed
ERROR: py27-migractions: commands failed
py27-sobjects: commands succeeded
py27-web: commands succeeded
py27-wsgi: commands succeeded
ERROR: py34-cubicweb: commands failed
ERROR: py34-dataimport: commands failed
py34-devtools: commands succeeded
py34-entities: commands succeeded
py34-ext: commands succeeded
ERROR: py34-hooks: commands failed
ERROR: py34-server: commands failed
ERROR: py34-migractions: commands failed
py34-sobjects: commands succeeded
py34-web: commands succeeded
py34-wsgi: commands succeeded
wrote json report at: /tmp/tmpVFdEsp/src/345579/tox-results.json
<br/>50 Error while running checker tox: `python2 -m tox --result-json=tox-results.json` returned with status : 1
Traceback (most recent call last):
File &quot;/tmp/tmp2ldCCo.py&quot;, line 54, in &lt;module&gt;
Command(toxw, toxcmd, raises=True, cwd=dst_dir).run()
File &quot;/usr/lib/python2.7/dist-packages/apycotlib/__init__.py&quot;, line 279, in run
self.handle_output(cmd.returncode, outfile, None)
File &quot;/usr/lib/python2.7/dist-packages/apycotlib/__init__.py&quot;, line 309, in handle_output
raise SetupException(short_msg)
SetupException: `python2 -m tox --result-json=tox-results.json` returned with status : 1
<br/>

log from execution