Alex Adamson
0ee219dc48
Address comments
2019-01-10 15:45:48 -05:00
Alex Adamson
ac2bf10fe2
Disable unserialized arguments check for py2
2019-01-08 15:17:03 -05:00
Alex Adamson
fa85371c73
Add test for #379
2019-01-08 15:17:03 -05:00
Bruno Oliveira
261d4189f0
Skip config.warn tests in pytest 4.1
2019-01-08 10:57:14 -02:00
Bruno Oliveira
2b65800738
Fix test_remote_usage_prog which started to break with pytest@features
2018-12-12 18:25:04 -02:00
Bruno Oliveira
95aaaec6c5
Merge pull request #388 from blueyed/pass-mainargv
...
Pass and use original sys.argv to/with workers
2018-12-12 15:21:56 -02:00
Bruno Oliveira
5f0abe3cb8
Merge remote-tracking branch 'upstream/master' into ethanhs/silencenodes
2018-12-11 14:35:25 -02:00
Bruno Oliveira
3332c99e1e
Improve verbosity test
2018-12-11 14:35:16 -02:00
Daniel Hahler
a70dace69c
Pass and use original sys.argv to/with workers
...
This gets used e.g. by argparse for the "prog" part.
We could explicitly pass it through and/or set it on
config._parser.prog, but that is a bit tedious just for this use case,
and it looks like "simulating" the main prog here appears to not be that
bad of a hack after all.
2018-12-11 06:41:18 +01:00
Ethan Smith
49c09117ed
Fix lint
2018-11-29 00:55:33 -08:00
Ethan Smith
566480fdd3
Add test and silence completely
2018-11-29 00:25:30 -08:00
Bruno Oliveira
50b27d2735
Skip test which needs pytest_namespace(), removed recently
2018-11-21 19:57:24 -02:00
Bruno Oliveira
c4b365b082
Update test that used deprecated cached_setup function
2018-11-16 12:50:15 -02:00
Bruno Oliveira
f9a13fe53b
Drop support to old pytest versions and test with python 3.7
2018-11-11 11:27:30 -02:00
Bruno Oliveira
3292e0ede0
Fix handling of skipped modules with pytest.skip at module level
...
Fix #332
2018-11-10 18:20:13 -02:00
Bruno Oliveira
b151e56fbd
Handle unserializable warning arguments
...
Fix #349
2018-10-30 09:44:13 -03:00
Bruno Oliveira
70688b7986
Refactor warning acceptance tests into a class
2018-10-29 18:38:01 -03:00
Bruno Oliveira
3f5a8eeb7f
Merge pull request #356 from pristupa/maxprocessing-option
...
Add --maxprocesses option to use with --numprocesses=auto
2018-10-18 07:54:02 -03: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
Jan Kasiak
fe06f27b8b
Issue node shutdown on empty workload
...
Remote pytest_runtestloop requires at least 2 tests, or a test
and a shutdown command. In case of inter test locking, for
example using a file lock, the tests could deadlock, since the
shutdown command would not be enqueued, and the last test of a
worker would never finish, and would not allow another worker
to make progress.
2018-09-30 15:39:04 -04:00
Bruno Oliveira
b176b37606
Add a test which reproduces #344 and fix the handling code
...
Fix #344
2018-09-27 22:18:52 -03:00
Brandon Hoffman
571d08fb8b
remove unneeded lines
2018-09-26 21:05:30 -05:00
Brandon Hoffman
36c28ee154
add test case for invalid warning handeling
2018-09-26 20:44:01 -05:00
Bruno Oliveira
78030e3d32
Fix warnings transfer between workers and master node with pytest >= 3.8
...
Fix #341
2018-09-25 10:01:20 -03:00
Bruno Oliveira
9bcd0e4352
Optimize collection performance
...
Only send failed collection reports, as master is only interested in failed
reports.
Fix #330
2018-08-18 23:09:00 -03: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
Bruno Oliveira
fe1f239612
Remove last references to obsolete py.code
...
Also remove some unnecessary references to py.builtin
Fix #305
2018-07-23 17:36:03 -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
Anthony Sottile
78fcf725cf
Factor out py.std
2018-07-05 15:35:39 -07:00
Bruno Oliveira
1be8a463ff
Add docstring to tests for #277
2018-02-16 20:14:47 -02:00
lmtierney
bd3c7dba8b
Ensure loadscope and loadfile work when the first scope has one work unit
2018-02-08 19:51:42 -06:00
Bruno Oliveira
ee2a1b4f4d
Add an explicit test for backward compatibility with "config.slaveinput"
...
Related to #234
2018-01-30 19:13:14 -02:00
feuillemorte
b04703b6ba
#234 Fix flake 8 and fix comments
2018-01-17 23:34:39 +03:00
feuillemorte
40491279ef
#234 Added master/worker terminology
2018-01-17 23:07:29 +03:00
feuillemorte
f1e6dc4344
use master/worker terminology
2018-01-16 21:46:43 +03:00
Bruno Oliveira
449e6c2e00
Add support for the new pytest_runtest_logfinish hook (pytest 3.4)
2018-01-10 17:52:27 -02:00
Bruno Oliveira
0d19e7f22b
Merge remote-tracking branch 'upstream/master' into Corni/loadfilescope
2017-12-22 16:07:51 -02:00
Bruno Oliveira
28d60f94f3
Fix load scope tests in pytest 3.3
...
Fix #260
2017-12-22 15:35:24 -02:00
Hugo
c6f2fdcc31
Remove redundant parentheses
2017-12-21 11:19:58 +02:00
Hugo
8b79d909ea
Rewrite unnecessary list literals as set literals
2017-12-21 11:04:19 +02:00
Cornelius Riemenschneider
fad312fdb7
Add scheduling by test file.
2017-12-14 16:18:46 +01:00
Bruno Oliveira
239065810e
Merge remote-tracking branch 'upstream/master' into timyhou/issue_241
2017-11-22 21:29:32 -02:00
Bruno Oliveira
58f7291a99
Fix E741 and E722 flake errors
2017-11-22 20:00:39 -02:00
thou
2eb1002781
Issue #241 Make copy during serialization of reprtraceback and reprcrash to avoid mutating.
2017-11-21 12:33:07 -06:00
Bruno Oliveira
95b660e26a
Merge pull request #232 from verdesmarald/master
...
Don't create DSession in collect-only mode
2017-10-05 07:35:36 -03:00
Tim Jenness
9e59d07947
Stop looping if all workers have died
...
If the workers are crashing and the restart limit has been met,
we need to stop listening for events and trigger an internal
error.
2017-10-04 17:59:36 -07: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