Skip to content
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

Exit with 0 when no tests in pytest #525

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

TakuyaNarihira
Copy link
Contributor

When we specify a filter option to -k to pytest, and no test is performed, PyTest exits with a code 5. This is problematic when we execute multiple pytests in our test scripts. For example, if the first pytest fails due to a filter option, the second test is not performed. This PR wraps pytest command with a shell script which modifies an exit code 5 to 0 to avoid this issue.

@TakuyaNarihira TakuyaNarihira added the release-note-build Build system label Oct 17, 2019
@YukioOobuchi YukioOobuchi merged commit f5bc265 into master Oct 17, 2019
@YukioOobuchi YukioOobuchi deleted the feature/20191011-succeed-no-test-pytest branch October 17, 2019 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants