Make 'setup.py trial' and 'setup.py test' pass --version-and-path to bin/tahoe by default.

This commit is contained in:
david-sarah 2011-01-21 00:03:28 -08:00
parent 28bd80812f
commit 8b94125b00
1 changed files with 3 additions and 3 deletions

View File

@ -249,21 +249,21 @@ class Trial(Command):
user_options = [ ("rterrors", "e", "Print out tracebacks as soon as they occur."), user_options = [ ("rterrors", "e", "Print out tracebacks as soon as they occur."),
("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."),
("version-and-path", None, "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.rterrors = False
self.reporter = None self.reporter = None
self.suite = "allmydata" self.suite = "allmydata"
self.version_and_path = False self.quiet = False
def finalize_options(self): def finalize_options(self):
pass pass
def run(self): def run(self):
args = [sys.executable, os.path.join('bin', 'tahoe')] args = [sys.executable, os.path.join('bin', 'tahoe')]
if self.version_and_path: if not self.quiet:
args.append('--version-and-path') args.append('--version-and-path')
args += ['debug', 'trial'] args += ['debug', 'trial']
if self.rterrors: if self.rterrors: