question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exit code consolidation

See original GitHub issue

We don’t know in advance how many workers we need for the tests (it depends on information we calculate in pytest_generate_tests), so if we have too many workers, we skip the redundant ones (as suggested here - https://stackoverflow.com/questions/33400071/skip-parametrized-tests-generated-by-pytest-generate-tests-at-module-level) and it works

Problem now is the exit code. For some reason, if I have some workers which returns exitstatus 0 (OK), and some workers which returns exitstatus 5 (NO_TESTS_COLLECTED), the general return code from the pytest run (from master) is 5 (where I want it to be 0, because all of the collected tests passed).

Is that a bug or the desired behavior? And if it’s the latter, any ideas to how can I accomplish the behavior I want?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RonnyPfannschmidtcommented, May 19, 2021

Depending on the setup, it’s potentially OK to just do it in pytest_configure

0reactions
cr-idanhaimcommented, May 19, 2021

Do you mean to wrap the pytest command with a script retrieving the number of VM’s? If so, do we need to use pytest.main in this case (https://docs.pytest.org/en/stable/usage.html#calling-pytest-from-python-code)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stagingprop exit codes - HCL Product Documentation
Consolidating and propagating large amounts of data from a staging to a production ... The stagingprop utility returns exit codes when errors are...
Read more >
Error code when trying to access consolidation — oracle-tech
I have a user that is receiving the error code -2147216700 when trying to access the consolidation application.
Read more >
Consolidation Codes - CMiC
To create Consolidation Code open Financial Document Formatter from the ... when done press [Save] then [Exit] to return to the main screen:...
Read more >
Knowledge Base Solution - Error: "Consolidation Failed ...
Error: "Consolidation Failed. Unknown Error." when consolidating the Trial Balance. in CCH ProSystem fx Engagement or Workpaper Manager · In binder view, select ......
Read more >
Tax Consolidation Exit Agreement Definition - Law Insider
Define Tax Consolidation Exit Agreement. means the Tax consolidation exit ... les sociétés referred to in Article 205 of the French tax code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found