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

Check if pytestFlagsArray contains "-n XXX" when passing in pytest-xdist to checkInputs #85

Open
SuperSandro2000 opened this issue Mar 3, 2021 · 1 comment

Comments

@SuperSandro2000
Copy link
Contributor

Got the idea from NixOS/nixpkgs#114473 (comment).

  checkInputs = [ pytest-xdist ];
  pytestFlagsArray = [
  ...
  "-n auto"
  ...
  ];

or

  pytestFlagsArray = [
  ...
  "-n 2"
  ...
  ];
@piegamesde
Copy link

This might even work with some command line parsers, although it is uncommon. But arguments like "-n=auto" or even "-nauto" (it hurts less in the "-n2" variant) may work as well.

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