Skip to content

pytest fails with exit code 5 #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wulfland opened this issue Jun 13, 2020 · 3 comments
Closed

pytest fails with exit code 5 #25

wulfland opened this issue Jun 13, 2020 · 3 comments

Comments

@wulfland
Copy link

I just created the starter pipeline like described here. The pipeline fails with a warning and a result of 5.

PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.

Installing collected packages: py, wcwidth, attrs, zipp, importlib-metadata, pluggy, more-itertools, six, pyparsing, packaging, pytest, pytest-azurepipelines
Successfully installed attrs-19.3.0 importlib-metadata-1.6.1 more-itertools-8.3.0 packaging-20.4 pluggy-0.13.1 py-1.8.1 pyparsing-2.4.7 pytest-5.4.3 pytest-azurepipelines-0.8.0 six-1.15.0 wcwidth-0.2.4 zipp-3.1.0
##[warning]The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.
============================= test session starts ==============================
platform linux -- Python 3.6.10, pytest-5.4.3, py-1.8.1, pluggy-0.13.1
rootdir: /home/vsts/work/1/s
plugins: azurepipelines-0.8.0
collected 0 items
No Result Found to Publish '/home/vsts/work/1/s/test-output.xml'.
Skipping uploading of coverage data.

=============================== warnings summary ===============================
/opt/hostedtoolcache/Python/3.6.10/x64/lib/python3.6/site-packages/_pytest/junitxml.py:417
  /opt/hostedtoolcache/Python/3.6.10/x64/lib/python3.6/site-packages/_pytest/junitxml.py:417: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
  Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.
    _issue_warning_captured(deprecated.JUNIT_XML_DEFAULT_FAMILY, config.hook, 2)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
----------- generated xml file: /home/vsts/work/1/s/test-output.xml ------------
============================== 1 warning in 0.02s ==============================

##[error]Bash exited with code '5'.

@vtbassmatt
Copy link
Member

@kraigb is this something you can look into?

@vtbassmatt
Copy link
Member

It looks like #24 has the fix.

@wulfland
Copy link
Author

Yes. That's this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants