Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alexandrufazakas@ct-lt-892:~/Documents/buildstream$ tox -- --no-cov tests/frontend/show.py::test_exceed_max_recursion_depth
- /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
- warnings.warn(msg)
- py35 develop-inst-noop: /home/alexandrufazakas/Documents/buildstream
- py35 installed: apipkg==1.5,arpy==1.1.1,astroid==2.1.0,atomicwrites==1.3.0,attrs==18.2.0,-e git+https://gitlab.com/AlexFazakas/buildstream@8a1986936bdff60f3ca2f0ab7d705b87518eb51c#egg=BuildStream,Click==7.0,coverage==4.4,Cython==0.29.7,execnet==1.5.0,grpcio==1.17.1,isort==4.3.9,Jinja2==2.10,lazy-object-proxy==1.3.1,MarkupSafe==1.1.0,mccabe==0.6.1,more-itertools==6.0.0,pathlib2==2.3.3,pluggy==0.9.0,pluginbase==0.7,protobuf==3.6.1,psutil==5.4.8,py==1.8.0,pycodestyle==2.5.0,pyftpdlib==1.5.4,pylint==2.2.2,pyroaring==0.2.6,pytest==4.3.0,pytest-cov==2.6.1,pytest-datafiles==2.0,pytest-env==0.6.2,pytest-forked==1.0.2,pytest-timeout==1.3.3,pytest-xdist==1.26.1,ruamel.yaml==0.15.51,six==1.12.0,typed-ast==1.3.1,ujson==1.35,wrapt==1.11.1
- py35 run-test-pre: PYTHONHASHSEED='2133998693'
- py35 run-test: commands[0] | pytest --basetemp /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp --cov=buildstream --cov-config .coveragerc --no-cov tests/frontend/show.py::test_exceed_max_recursion_depth
- ========================================== test session starts ==========================================
- platform linux -- Python 3.5.3, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 -- /home/alexandrufazakas/Documents/buildstream/.tox/py35/bin/python
- cachedir: .tox/py35/.pytest_cache
- rootdir: /home/alexandrufazakas/Documents/buildstream, inifile: setup.cfg
- plugins: xdist-1.26.1, timeout-1.3.3, forked-1.0.2, env-0.6.2, datafiles-2.0, cov-2.6.1
- collected 3 items
- tests/frontend/show.py::test_exceed_max_recursion_depth[100] FAILED [ 33%]
- tests/frontend/show.py::test_exceed_max_recursion_depth[500] FAILED [ 66%]
- tests/frontend/show.py::test_exceed_max_recursion_depth[1200] FAILED [100%]
- =============================================== FAILURES ================================================
- _________________________________ test_exceed_max_recursion_depth[100] __________________________________
- cli = <buildstream.testing.runcli.Cli object at 0x7fceabbf6438>
- tmpdir = local('/home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept0')
- dependency_depth = 100
- @pytest.mark.parametrize("dependency_depth", [100, 500, 1200])
- def test_exceed_max_recursion_depth(cli, tmpdir, dependency_depth):
- project_name = "recursion-test"
- path = str(tmpdir)
- project_path = os.path.join(path, project_name)
- def setup_test():
- """
- Creates a bst project with dependencydepth + 1 elements, each of which
- depends of the previous element to be created. Each element created
- is of type import and has an empty source file.
- """
- os.mkdir(project_path)
- result = cli.run(project=project_path, silent=True,
- args=['init', '--project-name', project_name])
- result.assert_success()
- sourcefiles_path = os.path.join(project_path, "files")
- os.mkdir(sourcefiles_path)
- element_path = os.path.join(project_path, "elements")
- for i in range(0, dependency_depth + 1):
- element = {
- 'kind': 'import',
- 'sources': [{'kind': 'local',
- 'path': 'files/source{}'.format(str(i))}],
- 'depends': ['element{}.bst'.format(str(i - 1))]
- }
- if i == 0:
- del element['depends']
- _yaml.dump(element, os.path.join(element_path, "element{}.bst".format(str(i))))
- source = os.path.join(sourcefiles_path, "source{}".format(str(i)))
- open(source, 'x').close()
- assert os.path.exists(source)
- > setup_test()
- tests/frontend/show.py:429:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/frontend/show.py:408: in setup_test
- result.assert_success()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <buildstream.testing.runcli.Result object at 0x7fceab7f9828>, fail_message = ''
- def assert_success(self, fail_message=''):
- > assert self.exit_code == 0, fail_message
- E AssertionError
- src/buildstream/testing/runcli.py:115: AssertionError
- ----------------------------------------- Captured stdout call ------------------------------------------
- BuildStream exited with code -1 for invocation:
- bst --no-colors --no-verbose --config /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept0/cache/buildstream.conf --directory /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept0/recursion-test init --project-name recursion-test
- ----------------------------------------- Captured stderr call ------------------------------------------
- Traceback (most recent call last):
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/testing/runcli.py", line 394, in _invoke
- cli_object.main(args=args or (), prog_name=cli_object.name)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/cli.py", line 195, in override_main
- standalone_mode=standalone_mode, **extra)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 717, in main
- rv = self.invoke(ctx)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 956, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 555, in invoke
- return callback(*args, **kwargs)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/decorators.py", line 27, in new_func
- return f(get_current_context().obj, *args, **kwargs)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/cli.py", line 326, in init
- app.init_project(project_name, format_version, element_path, force, target_directory)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/app.py", line 324, in init_project
- detail_dir = os.path.join(os.path.abspath(self._main_options['directory']), target_directory)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/posixpath.py", line 89, in join
- genericpath._check_arg_types('join', a, *p)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/genericpath.py", line 143, in _check_arg_types
- (funcname, s.__class__.__name__)) from None
- TypeError: join() argument must be str or bytes, not 'NoneType'
- _________________________________ test_exceed_max_recursion_depth[500] __________________________________
- cli = <buildstream.testing.runcli.Cli object at 0x7fceab7b5390>
- tmpdir = local('/home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept1')
- dependency_depth = 500
- @pytest.mark.parametrize("dependency_depth", [100, 500, 1200])
- def test_exceed_max_recursion_depth(cli, tmpdir, dependency_depth):
- project_name = "recursion-test"
- path = str(tmpdir)
- project_path = os.path.join(path, project_name)
- def setup_test():
- """
- Creates a bst project with dependencydepth + 1 elements, each of which
- depends of the previous element to be created. Each element created
- is of type import and has an empty source file.
- """
- os.mkdir(project_path)
- result = cli.run(project=project_path, silent=True,
- args=['init', '--project-name', project_name])
- result.assert_success()
- sourcefiles_path = os.path.join(project_path, "files")
- os.mkdir(sourcefiles_path)
- element_path = os.path.join(project_path, "elements")
- for i in range(0, dependency_depth + 1):
- element = {
- 'kind': 'import',
- 'sources': [{'kind': 'local',
- 'path': 'files/source{}'.format(str(i))}],
- 'depends': ['element{}.bst'.format(str(i - 1))]
- }
- if i == 0:
- del element['depends']
- _yaml.dump(element, os.path.join(element_path, "element{}.bst".format(str(i))))
- source = os.path.join(sourcefiles_path, "source{}".format(str(i)))
- open(source, 'x').close()
- assert os.path.exists(source)
- > setup_test()
- tests/frontend/show.py:429:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/frontend/show.py:408: in setup_test
- result.assert_success()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <buildstream.testing.runcli.Result object at 0x7fceab7b5d30>, fail_message = ''
- def assert_success(self, fail_message=''):
- > assert self.exit_code == 0, fail_message
- E AssertionError
- src/buildstream/testing/runcli.py:115: AssertionError
- ----------------------------------------- Captured stdout call ------------------------------------------
- BuildStream exited with code -1 for invocation:
- bst --no-colors --no-verbose --config /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept1/cache/buildstream.conf --directory /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept1/recursion-test init --project-name recursion-test
- ----------------------------------------- Captured stderr call ------------------------------------------
- Traceback (most recent call last):
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/testing/runcli.py", line 394, in _invoke
- cli_object.main(args=args or (), prog_name=cli_object.name)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/cli.py", line 195, in override_main
- standalone_mode=standalone_mode, **extra)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 717, in main
- rv = self.invoke(ctx)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 956, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 555, in invoke
- return callback(*args, **kwargs)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/decorators.py", line 27, in new_func
- return f(get_current_context().obj, *args, **kwargs)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/cli.py", line 326, in init
- app.init_project(project_name, format_version, element_path, force, target_directory)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/app.py", line 324, in init_project
- detail_dir = os.path.join(os.path.abspath(self._main_options['directory']), target_directory)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/posixpath.py", line 89, in join
- genericpath._check_arg_types('join', a, *p)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/genericpath.py", line 143, in _check_arg_types
- (funcname, s.__class__.__name__)) from None
- TypeError: join() argument must be str or bytes, not 'NoneType'
- _________________________________ test_exceed_max_recursion_depth[1200] _________________________________
- cli = <buildstream.testing.runcli.Cli object at 0x7fceab7855f8>
- tmpdir = local('/home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept2')
- dependency_depth = 1200
- @pytest.mark.parametrize("dependency_depth", [100, 500, 1200])
- def test_exceed_max_recursion_depth(cli, tmpdir, dependency_depth):
- project_name = "recursion-test"
- path = str(tmpdir)
- project_path = os.path.join(path, project_name)
- def setup_test():
- """
- Creates a bst project with dependencydepth + 1 elements, each of which
- depends of the previous element to be created. Each element created
- is of type import and has an empty source file.
- """
- os.mkdir(project_path)
- result = cli.run(project=project_path, silent=True,
- args=['init', '--project-name', project_name])
- result.assert_success()
- sourcefiles_path = os.path.join(project_path, "files")
- os.mkdir(sourcefiles_path)
- element_path = os.path.join(project_path, "elements")
- for i in range(0, dependency_depth + 1):
- element = {
- 'kind': 'import',
- 'sources': [{'kind': 'local',
- 'path': 'files/source{}'.format(str(i))}],
- 'depends': ['element{}.bst'.format(str(i - 1))]
- }
- if i == 0:
- del element['depends']
- _yaml.dump(element, os.path.join(element_path, "element{}.bst".format(str(i))))
- source = os.path.join(sourcefiles_path, "source{}".format(str(i)))
- open(source, 'x').close()
- assert os.path.exists(source)
- > setup_test()
- tests/frontend/show.py:429:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/frontend/show.py:408: in setup_test
- result.assert_success()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <buildstream.testing.runcli.Result object at 0x7fceab785400>, fail_message = ''
- def assert_success(self, fail_message=''):
- > assert self.exit_code == 0, fail_message
- E AssertionError
- src/buildstream/testing/runcli.py:115: AssertionError
- ----------------------------------------- Captured stdout call ------------------------------------------
- BuildStream exited with code -1 for invocation:
- bst --no-colors --no-verbose --config /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept2/cache/buildstream.conf --directory /home/alexandrufazakas/Documents/buildstream/.tox/py35/tmp/test_exceed_max_recursion_dept2/recursion-test init --project-name recursion-test
- ----------------------------------------- Captured stderr call ------------------------------------------
- Traceback (most recent call last):
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/testing/runcli.py", line 394, in _invoke
- cli_object.main(args=args or (), prog_name=cli_object.name)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/cli.py", line 195, in override_main
- standalone_mode=standalone_mode, **extra)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 717, in main
- rv = self.invoke(ctx)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 1137, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 956, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/core.py", line 555, in invoke
- return callback(*args, **kwargs)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/click/decorators.py", line 27, in new_func
- return f(get_current_context().obj, *args, **kwargs)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/cli.py", line 326, in init
- app.init_project(project_name, format_version, element_path, force, target_directory)
- File "/home/alexandrufazakas/Documents/buildstream/src/buildstream/_frontend/app.py", line 324, in init_project
- detail_dir = os.path.join(os.path.abspath(self._main_options['directory']), target_directory)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/posixpath.py", line 89, in join
- genericpath._check_arg_types('join', a, *p)
- File "/home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/genericpath.py", line 143, in _check_arg_types
- (funcname, s.__class__.__name__)) from None
- TypeError: join() argument must be str or bytes, not 'NoneType'
- WARNING: Coverage disabled via --no-cov switch!
- ======================================= slowest 20 test durations =======================================
- 0.04s call tests/frontend/show.py::test_exceed_max_recursion_depth[100]
- (0.00 durations hidden. Use -vv to show these durations.)
- =========================================== warnings summary ============================================
- .tox/py35/lib/python3.5/site-packages/pytest_cov/plugin.py:253
- /home/alexandrufazakas/Documents/buildstream/.tox/py35/lib/python3.5/site-packages/pytest_cov/plugin.py:253: PytestWarning: Coverage disabled via --no-cov switch!
- warnings.warn(pytest.PytestWarning(message))
- -- Docs: https://docs.pytest.org/en/latest/warnings.html
- ================================= 3 failed, 1 warnings in 0.22 seconds ==================================
- ERROR: InvocationError for command /home/alexandrufazakas/Documents/buildstream/.tox/py35/bin/pytest --basetemp .tox/py35/tmp --cov=buildstream --cov-config .coveragerc --no-cov tests/frontend/show.py::test_exceed_max_recursion_depth (exited with code 1)
- py36 create: /home/alexandrufazakas/Documents/buildstream/.tox/py36
- SKIPPED: InterpreterNotFound: python3.6
- py37 create: /home/alexandrufazakas/Documents/buildstream/.tox/py37
- SKIPPED: InterpreterNotFound: python3.7
- ________________________________________________ summary ________________________________________________
- ERROR: py35: commands failed
- SKIPPED: py36: InterpreterNotFound: python3.6
- SKIPPED: py37: InterpreterNotFound: python3.7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement