request = <SubRequest '_push_request_context' for <Function test_provenance_heuristics_content_find_first[remote-db-without-path-denormalized-True-cmdbts2-True-2]>>
@pytest.fixture(autouse=True)
def _push_request_context(request: FixtureRequest):
"""During tests execution request context has been pushed, e.g. `url_for`,
`session`, etc. can be used in tests as is::
def test_app(app, client):
assert client.get(url_for('myview')).status_code == 200
"""
if "app" not in request.fixturenames:
return
> app = request.getfixturevalue("app")
.tox/py3/lib/python3.7/site-packages/swh/core/pytest_plugin.py:322:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/provenance/tests/conftest.py:47: in populated_db
"swh.provenance", postgresql.dsn, flavor=request.param
.tox/py3/lib/python3.7/site-packages/swh/core/cli/db.py:229: in populate_database_for_package
execute_sqlfiles(sqlfiles, conninfo, flavor)
.tox/py3/lib/python3.7/site-packages/swh/core/cli/db.py:324: in execute_sqlfiles
subprocess.check_call(psql_command + ["-f", sqlfile])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-d', ...],)
kwargs = {}, retcode = 3
cmd = ['psql', '--quiet', '--no-psqlrc', '-v', 'ON_ERROR_STOP=1', '-d', ...]
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', '-d', "user=postgres password=xxx dbname=tests host=127.0.0.1 port=25914 options=''", '-f', '/var/lib/jenkins/workspace/DPROV/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/provenance/sql/40-funcs.sql']' returned non-zero exit status 3.
/usr/lib/python3.7/subprocess.py:347: CalledProcessError
TEST RESULT
TEST RESULT
- Run At
- Jul 22 2021, 9:45 AM