Page MenuHomeSoftware Heritage
Paste P328

swh-indexer test fails with tox -r
ActivePublic

Authored by moranegg on Oct 30 2018, 4:31 PM.
GLOB sdist-make: /home/morane/Documents/code/swh-environment/swh-indexer/setup.py
flake8 recreate: /home/morane/Documents/code/swh-environment/swh-indexer/.tox/flake8
flake8 installdeps: flake8
flake8 installed: flake8==3.6.0,mccabe==0.6.1,pkg-resources==0.0.0,pycodestyle==2.4.0,pyflakes==2.0.0
flake8 runtests: PYTHONHASHSEED='3997505493'
flake8 runtests: commands[0] | /home/morane/Documents/code/swh-environment/swh-indexer/.tox/flake8/bin/python -m flake8
py3 recreate: /home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3
py3 installdeps: .[testing], pytest-cov, pifpaf
py3 inst: /home/morane/Documents/code/swh-environment/swh-indexer/.tox/dist/swh.indexer-0.0.55.post3.zip
py3 installed: aiohttp==3.4.4,amqp==2.3.2,arrow==0.12.1,async-timeout==3.0.1,atomicwrites==1.2.1,attrs==18.2.0,billiard==3.5.0.4,celery==4.2.1,certifi==2018.10.15,cffi==1.11.5,chardet==3.0.4,Click==7.0,coverage==4.5.1,daiquiri==1.5.0,elasticsearch==6.3.1,extras==1.0.0,file-magic==0.4.0,fixtures==3.0.0,Flask==1.0.2,idna==2.7,idna-ssl==1.1.0,itsdangerous==1.1.0,Jinja2==2.10,kombu==4.2.1,linecache2==1.0.0,MarkupSafe==1.0,more-itertools==4.3.0,msgpack-python==0.5.6,multidict==4.4.2,pathlib2==2.3.2,pbr==5.1.0,pifpaf==2.1.2,pkg-resources==0.0.0,pluggy==0.8.0,psutil==5.4.8,psycopg2==2.7.5,py==1.7.0,pycparser==2.19,Pygments==2.2.0,pytest==3.9.3,pytest-cov==2.6.0,python-dateutil==2.7.5,python-mimeparse==1.6.0,pytz==2018.7,PyYAML==3.13,requests==2.20.0,six==1.11.0,swh.core==0.0.44,swh.indexer==0.0.55.post3,swh.model==0.0.28,swh.objstorage==0.0.27,swh.scheduler==0.0.35,swh.storage==0.0.108,systemd-python==234,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.24,vcversioner==2.16.0.0,vine==1.1.4,Werkzeug==0.14.1,xattr==0.9.6,yarl==1.2.6
py3 runtests: PYTHONHASHSEED='3997505493'
py3 runtests: commands[0] | pifpaf run postgresql -- pytest --cov=swh --cov-branch
============================= test session starts ==============================
platform linux -- Python 3.5.3, pytest-3.9.3, py-1.7.0, pluggy-0.8.0
rootdir: /home/morane/Documents/code/swh-environment/swh-indexer, inifile: pytest.ini
plugins: cov-2.6.0, celery-4.2.1
collected 99 items
swh/indexer/tests/test_language.py ... [ 3%]
swh/indexer/tests/test_metadata.py ....... [ 10%]
swh/indexer/tests/test_mimetype.py .... [ 14%]
swh/indexer/tests/test_orchestrator.py EFF [ 17%]
swh/indexer/tests/test_origin_head.py ..... [ 22%]
swh/indexer/tests/test_origin_metadata.py E [ 23%]
swh/indexer/tests/storage/test_api_client.py EEEEEEEEEEEEEEEEEEEEEEEEEEE [ 50%]
EEEEEEEE [ 58%]
swh/indexer/tests/storage/test_converters.py ...... [ 64%]
swh/indexer/tests/storage/test_storage.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 94%]
EEEEE [100%]
==================================== ERRORS ====================================
_________ ERROR at setup of OrchestratorTest.test_orchestrator_filter __________
cls = <class 'swh.indexer.tests.test_orchestrator.OrchestratorTest'>
@classmethod
def setUpClass(cls):
all_dump_files = sorted(glob.glob(DUMP_FILES), key=sortkey)
all_dump_files = [(x, DB_DUMP_TYPES[os.path.splitext(x)[1]])
for x in all_dump_files]
cls.add_db(name=cls.SCHEDULER_DB_NAME,
dumps=all_dump_files)
> super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/scheduler/tests/scheduler_testing.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
---------------------------- Captured stderr setup -----------------------------
psql:/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql:427: ERROR: syntax error at or near "is"
LINE 1: comment on function swh_scheduler_task_to_archive is 'Read a...
^
______________ ERROR at setup of TestOriginMetadata.test_pipeline ______________
cls = <class 'swh.indexer.tests.test_origin_metadata.TestOriginMetadata'>
@classmethod
def setUpClass(cls):
all_dump_files = sorted(glob.glob(DUMP_FILES), key=sortkey)
all_dump_files = [(x, DB_DUMP_TYPES[os.path.splitext(x)[1]])
for x in all_dump_files]
cls.add_db(name=cls.SCHEDULER_DB_NAME,
dumps=all_dump_files)
> super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/scheduler/tests/scheduler_testing.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
---------------------------- Captured stderr setup -----------------------------
createdb: database creation failed: ERROR: database "softwareheritage-scheduler-test-fixture" already exists
psql:/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql:427: ERROR: syntax error at or near "is"
LINE 1: comment on function swh_scheduler_task_to_archive is 'Read a...
^
____________ ERROR at setup of TestRemoteStorage.test_check_config _____________
cls = <class 'swh.indexer.tests.storage.test_api_client.TestRemoteStorage'>
@classmethod
def setUpClass(cls):
cls.dbname = cls.TEST_DB_NAME # XXX to kill?
dump_files = cls.TEST_DB_DUMP
if isinstance(dump_files, str):
dump_files = [dump_files]
all_dump_files = []
for files in dump_files:
all_dump_files.extend(
sorted(glob.glob(files), key=sortkey))
all_dump_files = [(x, DB_DUMP_TYPES[os.path.splitext(x)[1]])
for x in all_dump_files]
cls.add_db(name=cls.TEST_DB_NAME,
dumps=all_dump_files)
> super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
---------------------------- Captured stderr setup -----------------------------
createdb: database creation failed: ERROR: database "softwareheritage-scheduler-test-fixture" already exists
psql:/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql:427: ERROR: syntax error at or near "is"
LINE 1: comment on function swh_scheduler_task_to_archive is 'Read a...
^
ERROR at setup of TestRemoteStorage.test_content_ctags_add__add_new_ctags_added
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of TestRemoteStorage.test_content_ctags_add__update_in_place __
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
__________ ERROR at setup of TestRemoteStorage.test_content_ctags_get __________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of TestRemoteStorage.test_content_ctags_missing ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of TestRemoteStorage.test_content_ctags_search _________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
___ ERROR at setup of TestRemoteStorage.test_content_ctags_search_no_result ____
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_fossology_license_add__new_license_added
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_fossology_license_add__update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
____ ERROR at setup of TestRemoteStorage.test_content_fossology_license_get ____
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_language_add__drop_duplicate _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_language_add__update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of TestRemoteStorage.test_content_language_get _________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of TestRemoteStorage.test_content_language_missing _______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of TestRemoteStorage.test_content_metadata_add_drop_duplicate _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_metadata_add_update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of TestRemoteStorage.test_content_metadata_get _________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of TestRemoteStorage.test_content_metadata_missing _______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_mimetype_add__drop_duplicate _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_content_mimetype_add__update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of TestRemoteStorage.test_content_mimetype_get _________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of TestRemoteStorage.test_content_mimetype_missing _______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of TestRemoteStorage.test_indexer_configuration_add ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of TestRemoteStorage.test_indexer_configuration_add_multiple __
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of TestRemoteStorage.test_indexer_configuration_get ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
__ ERROR at setup of TestRemoteStorage.test_indexer_configuration_get_missing __
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of TestRemoteStorage.test_indexer_configuration_metadata_get __
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_indexer_configuration_metadata_get_missing_context
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_origin_intrinsic_metadata_add_drop_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_origin_intrinsic_metadata_add_update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
____ ERROR at setup of TestRemoteStorage.test_origin_intrinsic_metadata_get ____
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_revision_metadata_add_drop_duplicate _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of TestRemoteStorage.test_revision_metadata_add_update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of TestRemoteStorage.test_revision_metadata_get ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of TestRemoteStorage.test_revision_metadata_missing ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
____________ ERROR at setup of IndexerTestStorage.test_check_config ____________
cls = <class 'swh.indexer.tests.storage.test_storage.IndexerTestStorage'>
@classmethod
def setUpClass(cls):
cls.dbname = cls.TEST_DB_NAME # XXX to kill?
dump_files = cls.TEST_DB_DUMP
if isinstance(dump_files, str):
dump_files = [dump_files]
all_dump_files = []
for files in dump_files:
all_dump_files.extend(
sorted(glob.glob(files), key=sortkey))
all_dump_files = [(x, DB_DUMP_TYPES[os.path.splitext(x)[1]])
for x in all_dump_files]
cls.add_db(name=cls.TEST_DB_NAME,
dumps=all_dump_files)
> super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
---------------------------- Captured stderr setup -----------------------------
createdb: database creation failed: ERROR: database "softwareheritage-test-indexer" already exists
createdb: database creation failed: ERROR: database "softwareheritage-scheduler-test-fixture" already exists
psql:/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql:427: ERROR: syntax error at or near "is"
LINE 1: comment on function swh_scheduler_task_to_archive is 'Read a...
^
ERROR at setup of IndexerTestStorage.test_content_ctags_add__add_new_ctags_added
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of IndexerTestStorage.test_content_ctags_add__update_in_place _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_________ ERROR at setup of IndexerTestStorage.test_content_ctags_get __________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_______ ERROR at setup of IndexerTestStorage.test_content_ctags_missing ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of IndexerTestStorage.test_content_ctags_search ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
___ ERROR at setup of IndexerTestStorage.test_content_ctags_search_no_result ___
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_fossology_license_add__new_license_added
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_fossology_license_add__update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
___ ERROR at setup of IndexerTestStorage.test_content_fossology_license_get ____
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_language_add__drop_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_language_add__update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of IndexerTestStorage.test_content_language_get ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of IndexerTestStorage.test_content_language_missing ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_metadata_add_drop_duplicate _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_metadata_add_update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of IndexerTestStorage.test_content_metadata_get ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of IndexerTestStorage.test_content_metadata_missing ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_mimetype_add__drop_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_content_mimetype_add__update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
________ ERROR at setup of IndexerTestStorage.test_content_mimetype_get ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
______ ERROR at setup of IndexerTestStorage.test_content_mimetype_missing ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_____ ERROR at setup of IndexerTestStorage.test_indexer_configuration_add ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of IndexerTestStorage.test_indexer_configuration_add_multiple _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_____ ERROR at setup of IndexerTestStorage.test_indexer_configuration_get ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of IndexerTestStorage.test_indexer_configuration_get_missing __
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_ ERROR at setup of IndexerTestStorage.test_indexer_configuration_metadata_get _
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_indexer_configuration_metadata_get_missing_context
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_origin_intrinsic_metadata_add_drop_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_origin_intrinsic_metadata_add_update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
___ ERROR at setup of IndexerTestStorage.test_origin_intrinsic_metadata_get ____
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_revision_metadata_add_drop_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
ERROR at setup of IndexerTestStorage.test_revision_metadata_add_update_in_place_duplicate
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_______ ERROR at setup of IndexerTestStorage.test_revision_metadata_get ________
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
_____ ERROR at setup of IndexerTestStorage.test_revision_metadata_missing ______
tp = <class 'subprocess.CalledProcessError'>, value = None, tb = None
def reraise(tp, value, tb=None):
try:
if value is None:
value = tp()
if value.__traceback__ is not tb:
> raise value.with_traceback(tb)
.tox/py3/lib/python3.5/site-packages/six.py:692:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:274: in setUpClass
super().setUpClass()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:188: in setUpClass
cls._DB_LIST[name].__enter__()
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:120: in __enter__
dumps=self.dumps)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:62: in db_create
pg_restore(dbname, dump, dtype)
.tox/py3/lib/python3.5/site-packages/swh/core/tests/db_testing.py:32: in pg_restore
dbname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-f', '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/swh/scheduler/sql/30-swh-schema.sql', 'softwareheritage-scheduler-test-fixture']' returned non-zero exit status 3
/usr/lib/python3.5/subprocess.py:271: CalledProcessError
=================================== FAILURES ===================================
____________ MockedOrchestratorTest.test_mocked_orchestrator_batch _____________
self = <swh.indexer.tests.test_orchestrator.MockedOrchestratorTest testMethod=test_mocked_orchestrator_batch>
def test_mocked_orchestrator_batch(self):
> o = MockedTestOrchestrator12()
swh/indexer/tests/test_orchestrator.py:184:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
swh/indexer/tests/test_orchestrator.py:127: in __init__
super().__init__()
swh/indexer/tests/test_orchestrator.py:101: in __init__
super().__init__()
swh/indexer/orchestrator.py:80: in __init__
self.prepare_tasks()
swh/indexer/orchestrator.py:101: in prepare_tasks
tasks[name] = utils.get_task(self.TASK_NAMES[name])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
task_name = 'swh.indexer.tests.test_orchestrator.indexer1_task'
def get_task(task_name):
"""Retrieve task object in our application instance by its fully
qualified python name.
Args:
task_name (str): task's name (e.g
swh.loader.git.tasks.LoadDiskGitRepository)
Returns:
Instance of task
"""
from swh.scheduler.celery_backend.config import app
for module in app.conf.CELERY_IMPORTS:
> __import__(module)
E ImportError: No module named 'swh.deposit'
.tox/py3/lib/python3.5/site-packages/swh/scheduler/utils.py:24: ImportError
____________ MockedOrchestratorTest.test_mocked_orchestrator_filter ____________
self = <swh.indexer.tests.test_orchestrator.MockedOrchestratorTest testMethod=test_mocked_orchestrator_filter>
def test_mocked_orchestrator_filter(self):
> o = MockedTestOrchestrator12()
swh/indexer/tests/test_orchestrator.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
swh/indexer/tests/test_orchestrator.py:127: in __init__
super().__init__()
swh/indexer/tests/test_orchestrator.py:101: in __init__
super().__init__()
swh/indexer/orchestrator.py:80: in __init__
self.prepare_tasks()
swh/indexer/orchestrator.py:101: in prepare_tasks
tasks[name] = utils.get_task(self.TASK_NAMES[name])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
task_name = 'swh.indexer.tests.test_orchestrator.indexer2_task'
def get_task(task_name):
"""Retrieve task object in our application instance by its fully
qualified python name.
Args:
task_name (str): task's name (e.g
swh.loader.git.tasks.LoadDiskGitRepository)
Returns:
Instance of task
"""
from swh.scheduler.celery_backend.config import app
for module in app.conf.CELERY_IMPORTS:
> __import__(module)
E ImportError: No module named 'swh.deposit'
.tox/py3/lib/python3.5/site-packages/swh/scheduler/utils.py:24: ImportError
----------- coverage: platform linux, python 3.5.3-final-0 -----------
Name Stmts Miss Branch BrPart Cover
--------------------------------------------------------------------------------
swh/__init__.py 1 0 0 0 100%
swh/indexer/__init__.py 3 0 0 0 100%
swh/indexer/ctags.py 50 50 14 0 0%
swh/indexer/fossology_license.py 41 41 8 0 0%
swh/indexer/indexer.py 140 45 42 11 66%
swh/indexer/language.py 77 23 24 6 63%
swh/indexer/metadata.py 100 31 28 3 62%
swh/indexer/metadata_detector.py 18 0 14 0 100%
swh/indexer/metadata_dictionary.py 107 27 32 4 78%
swh/indexer/mimetype.py 45 19 10 1 49%
swh/indexer/orchestrator.py 57 26 14 2 46%
swh/indexer/origin_head.py 100 32 40 9 61%
swh/indexer/producer.py 55 55 28 0 0%
swh/indexer/rehash.py 65 65 24 0 0%
swh/indexer/storage/__init__.py 171 91 50 0 36%
swh/indexer/storage/api/__init__.py 0 0 0 0 100%
swh/indexer/storage/api/client.py 7 1 0 0 86%
swh/indexer/storage/api/server.py 33 14 4 1 54%
swh/indexer/storage/converters.py 18 0 2 0 100%
swh/indexer/storage/db.py 118 60 24 0 41%
swh/indexer/tasks.py 46 46 2 0 0%
swh/indexer/tests/__init__.py 9 1 0 0 89%
swh/indexer/tests/storage/__init__.py 0 0 0 0 100%
swh/indexer/tests/storage/test_api_client.py 12 4 0 0 67%
swh/indexer/tests/storage/test_converters.py 35 0 0 0 100%
swh/indexer/tests/storage/test_storage.py 404 351 10 0 14%
swh/indexer/tests/test_language.py 45 0 0 0 100%
swh/indexer/tests/test_metadata.py 71 0 0 0 100%
swh/indexer/tests/test_mimetype.py 48 0 0 0 100%
swh/indexer/tests/test_orchestrator.py 88 38 12 0 50%
swh/indexer/tests/test_origin_head.py 39 0 0 0 100%
swh/indexer/tests/test_origin_metadata.py 56 35 0 0 38%
swh/indexer/tests/test_utils.py 53 7 16 3 86%
--------------------------------------------------------------------------------
TOTAL 2112 1062 398 40 47%
=============================== warnings summary ===============================
.tox/py3/lib/python3.5/site-packages/psycopg2/__init__.py:144
/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/lib/python3.5/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
""")
-- Docs: https://docs.pytest.org/en/latest/warnings.html
========== 2 failed, 25 passed, 1 warnings, 72 error in 10.81 seconds ==========
WARNING [pifpaf.drivers] `psutil.Popen(pid=22264, status='terminated')` is already gone, sending SIGKILL to its process group
WARNING [pifpaf.drivers] `psutil.Popen(pid=22247, status='terminated')` is already gone, sending SIGKILL to its process group
WARNING [pifpaf.drivers] `psutil.Popen(pid=22242, status='terminated')` is already gone, sending SIGKILL to its process group
ERROR: InvocationError: '/home/morane/Documents/code/swh-environment/swh-indexer/.tox/py3/bin/pifpaf run postgresql -- pytest --cov=swh --cov-branch'
___________________________________ summary ____________________________________
flake8: commands succeeded
ERROR: py3: commands failed