2008-08-16 23:26:59 +08:00
|
|
|
import py
|
|
|
|
|
|
|
|
Module = py.test.collect.Module
|
2009-02-27 18:18:27 +08:00
|
|
|
#DoctestFile = py.test.collect.DoctestFile
|
2008-08-16 23:26:59 +08:00
|
|
|
Directory = py.test.collect.Directory
|
|
|
|
Class = py.test.collect.Class
|
|
|
|
Generator = py.test.collect.Generator
|
|
|
|
Function = py.test.collect.Function
|
|
|
|
Instance = py.test.collect.Instance
|
|
|
|
|
|
|
|
conf_iocapture = "fd" # overridable from conftest.py
|
|
|
|
|
2009-02-27 18:18:27 +08:00
|
|
|
# XXX resultlog should go, pypy's nightrun depends on it
|
2009-03-18 23:51:55 +08:00
|
|
|
pytest_plugins = "default terminal xfail tmpdir execnetcleanup resultlog monkeypatch".split()
|
2009-02-27 18:18:27 +08:00
|
|
|
|
2008-08-16 23:26:59 +08:00
|
|
|
# ===================================================
|
|
|
|
# Distributed testing specific options
|
|
|
|
|
|
|
|
#dist_hosts: needs to be provided by user
|
|
|
|
#dist_rsync_roots: might be provided by user, if not present or None,
|
|
|
|
# whole pkgdir will be rsynced
|
2009-02-27 18:18:27 +08:00
|
|
|
|
2008-08-16 23:26:59 +08:00
|
|
|
dist_taskspernode = 15
|
|
|
|
dist_boxed = False
|
|
|
|
if hasattr(py.std.os, 'nice'):
|
|
|
|
dist_nicelevel = py.std.os.nice(0) # nice py.test works
|
|
|
|
else:
|
|
|
|
dist_nicelevel = 0
|
|
|
|
dist_rsync_ignore = []
|
|
|
|
|