mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-25 05:19:53 +00:00
Change 'setup.py test' and 'setup.py trial' to pass --rterrors to trial by default. Suppress using --no-rterrors. Also pass --until-failure/-u to trial. fixes #1699
This commit is contained in:
parent
2ee1bc7148
commit
972bcb1c42
10
setup.py
10
setup.py
@ -167,14 +167,16 @@ tests_require=[]
|
|||||||
class Trial(Command):
|
class Trial(Command):
|
||||||
description = "run trial (use 'bin%stahoe debug trial' for the full set of trial options)" % (os.sep,)
|
description = "run trial (use 'bin%stahoe debug trial' for the full set of trial options)" % (os.sep,)
|
||||||
# This is just a subset of the most useful options, for compatibility.
|
# This is just a subset of the most useful options, for compatibility.
|
||||||
user_options = [ ("rterrors", "e", "Print out tracebacks as soon as they occur."),
|
user_options = [ ("no-rterrors", None, "Don't print out tracebacks as they occur."),
|
||||||
|
("until-failure", "u", "Repeat a test (specified by -s) until it fails."),
|
||||||
("reporter=", None, "The reporter to use for this test run."),
|
("reporter=", None, "The reporter to use for this test run."),
|
||||||
("suite=", "s", "Specify the test suite."),
|
("suite=", "s", "Specify the test suite."),
|
||||||
("quiet", None, "Don't display version numbers and paths of Tahoe dependencies."),
|
("quiet", None, "Don't display version numbers and paths of Tahoe dependencies."),
|
||||||
]
|
]
|
||||||
|
|
||||||
def initialize_options(self):
|
def initialize_options(self):
|
||||||
self.rterrors = False
|
self.no_rterrors = False
|
||||||
|
self.until_failure = False
|
||||||
self.reporter = None
|
self.reporter = None
|
||||||
self.suite = "allmydata"
|
self.suite = "allmydata"
|
||||||
self.quiet = False
|
self.quiet = False
|
||||||
@ -187,8 +189,10 @@ class Trial(Command):
|
|||||||
if not self.quiet:
|
if not self.quiet:
|
||||||
args.append('--version-and-path')
|
args.append('--version-and-path')
|
||||||
args += ['debug', 'trial']
|
args += ['debug', 'trial']
|
||||||
if self.rterrors:
|
if not self.no_rterrors:
|
||||||
args.append('--rterrors')
|
args.append('--rterrors')
|
||||||
|
if self.until_failure:
|
||||||
|
args.append('--until-failure')
|
||||||
if self.reporter:
|
if self.reporter:
|
||||||
args.append('--reporter=' + self.reporter)
|
args.append('--reporter=' + self.reporter)
|
||||||
if self.suite:
|
if self.suite:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user