Bruno Oliveira
607d8288d4
Add psutil extra and introduce pytest_xdist_auto_num_workers hook
...
This makes using psutil optional and opens up the possibility of customization
through the pytest_xdist_auto_num_workers hook, making things like #477 possible.
Fix #585
2020-08-25 08:38:28 -03:00
Bruno Oliveira
e469fc7b80
Revert "Merge pull request #560 from utapyngo/logical-cpu-count"
...
This reverts commit 0094b29a14
, reversing
changes made to c6255faad4
.
2020-08-24 14:50:36 -03:00
Zac Hatfield-Dodds
0094b29a14
Merge pull request #560 from utapyngo/logical-cpu-count
2020-08-03 22:49:09 +10:00
Ivan Zaikin
e528a42ddc
Support OpenBSD and NetBSD
2020-07-28 08:55:32 +07:00
Adam Johnson
b524317863
Make "--pdb" imply "--dist no"
...
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
2020-07-24 20:07:42 -03:00
Ivan Zaikin
77e5fdfef9
Use psutil.cpu_count(logical=False) in auto_detect_cpus()
2020-07-23 10:18:43 +07:00
Sven-Hendrik Haase
2183d741bb
Add global session uuid ( fixes #524 )
2020-04-30 19:43:16 +02:00
Jiri Kuncar
d8a794bc84
Improve behavior of -n=auto with --pdb option
2019-02-12 15:57:55 +01:00
Pavel Pristupa
5ce8a6ec1a
Add maxprocesses option to limit the maximum number of workers when using numprocesses=auto
...
Fix #337
2018-10-17 17:08:56 +07:00
Bruno Oliveira
fced1645cb
Run pre-commit: black, whitespaces, rst
2018-07-27 17:50:55 -03:00
Bruno Oliveira
ee0754bc35
Improve test for Travis fallback
2018-07-27 08:24:34 -03:00
Sergey B Kirpichev
5c59a30277
Add coverage test for Travis CI workaround
2018-07-26 12:56:10 +03:00
Yoan Blanc
04882074e1
plugin: get cpu_count from sched_getaffinity
...
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
2018-07-18 08:32:01 +02:00
feuillemorte
40491279ef
#234 Added master/worker terminology
2018-01-17 23:07:29 +03:00
verdesmarald
1e66af6389
Fix flake8 formatting errors
2017-09-07 16:40:32 +10:00
verdesmarald
7674f6b186
Add tests for interactions between boxed, dist and collect-only.
...
Re-enable parsing of the boxed option with collect-only
2017-09-07 16:09:06 +10:00
Bruno Oliveira
47b65716a3
Fix test for --numprocess flag
2017-06-22 21:47:34 -03:00
Max Linke
dbaf49cd69
add '--numprocesses' as long option for '-n'
...
This is more verbose in scripts that run pytest-xdist. It can also help
in some ci-helper scripts like to auto detect if pytest-xdist should be
installed.
2017-06-22 21:53:16 +02:00
Bruno Oliveira
a2881fd8a9
Fix test_auto_detect_cpus
2016-08-06 17:06:37 -03:00
Bruno Oliveira
0127cac3f9
Unit test "auto" cpu detection
...
Use that instead of an acceptance test: on travis it would result in over 16 slaves being spawned,
which caused weird crashes on multiprocessing module during teardown
Fix #30
2015-12-14 23:00:59 -02:00
Ronny Pfannschmidt
0f5ef95be8
flake8 cleanup
2015-09-01 22:37:51 +02:00
Ronny Pfannschmidt
ec89a3c36b
split up the plugin and extend tox test matrix
2015-08-08 11:57:08 +02:00
Anatoly Bubenkov
f4b86f0127
add glob support for rsyncignore. add command line option for rsyncignore
2013-12-05 15:19:31 +01:00
holger krekel
d81ffaa980
some changes to make remote testing work better - slightly hackish and will remain so until 'tox' is used to create environments and properly set things up.
2010-11-13 19:47:01 +01:00
holger krekel
4661db0fef
don't add opts in sub processes, add -rf by default
2010-11-01 08:56:47 +01:00
holger krekel
f7923c692e
move code to fewer more sensible modules.
2010-09-27 16:13:57 +02:00
holger krekel
2efb059d75
adapt to new refactored py baseline.
...
remove pickling in distributed testing
refactor internal mechanism enough to work for -n1
* * *
fix handling of crashing items and slave down events
2010-09-27 16:13:54 +02:00
holger krekel
4d0422a548
remove trailing whitespace from sources
2010-09-07 10:46:58 +02:00
holger krekel
6b75e0a740
initial copy and modifications from the original py/impl/test/dist and
...
looponfail code. Now works as its own "xdist" plugin.
2010-01-13 15:55:01 +01:00