[svn r63209] polish command line options for distributed testing.
--HG-- branch : trunk
This commit is contained in:
@@ -55,6 +55,7 @@ class TmpTestdir:
|
||||
self.tmpdir = tmpdir.mkdir(name)
|
||||
self.plugins = []
|
||||
self._syspathremove = []
|
||||
self.chdir() # always chdir
|
||||
|
||||
def Config(self, pyplugins=None, topdir=None):
|
||||
if topdir is None:
|
||||
@@ -163,6 +164,11 @@ class TmpTestdir:
|
||||
config.parse(args)
|
||||
return config
|
||||
|
||||
def parseconfigure(self, *args):
|
||||
config = self.parseconfig(*args)
|
||||
config.pytestplugins.do_configure(config)
|
||||
return config
|
||||
|
||||
def getitem(self, source, funcname="test_func"):
|
||||
modcol = self.getmodulecol(source)
|
||||
item = modcol.join(funcname)
|
||||
|
||||
Reference in New Issue
Block a user