Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_api_client::test_site_map
Failed

TEST RESULT

Run At
Jun 23 2021, 6:13 PM
Details
request = <SubRequest '_push_request_context' for <Function test_site_map>> @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/core/db/pytest_plugin.py:178: in postgresql_factory no_truncate_tables=no_truncate_tables, .tox/py3/lib/python3.7/site-packages/pytest_postgresql/janitor.py:157: in __enter__ self.init() .tox/py3/lib/python3.7/site-packages/swh/core/db/pytest_plugin.py:132: in init self.db_setup() .tox/py3/lib/python3.7/site-packages/swh/core/db/pytest_plugin.py:81: in db_setup fname, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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', 'host=127.0.0.1 user=postgres port=29484 dbname=scheduler', '-f', '/var/lib/jenkins/workspace/DSCH/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/scheduler/sql/30-schema.sql']' returned non-zero exit status 3. /usr/lib/python3.7/subprocess.py:347: CalledProcessError