Add in the ability to enable xunit output.

Rename the nova verbose -> log_verbose so it doesn't
conflict/overwrite the value that comes in on the command line.
This commit is contained in:
Joshua Harlow 2012-11-30 14:23:43 -08:00
parent 4a74c4585b
commit 2088135a5b
3 changed files with 7 additions and 3 deletions

View File

@ -856,6 +856,10 @@ class PythonTestingComponent(component.Component):
cmd.append('--nologcapture')
for e in self._get_test_exclusions():
cmd.append('--exclude=%s' % (e))
xunit_fn = self.get_option("xunit_filename"):
if xunit_fn:
cmd.append("--with-xunit")
cmd.append("--xunit-file=%s" % (xunit_fn))
return cmd
def _use_pep8(self):
@ -922,7 +926,7 @@ class PythonTestingComponent(component.Component):
cmd = self._get_test_command()
env = self._get_env()
with open(os.devnull, 'wb') as null_fh:
if self.get_bool_option("tests_verbose", default_value=False):
if self.get_bool_option("verbose", default_value=False):
null_fh = None
sh.execute(*cmd, stdout_fh=None, stderr_fh=null_fh,
cwd=app_dir, env_overrides=env)

View File

@ -286,7 +286,7 @@ class ConfConfigurator(object):
# Used more than once so we calculate it ahead of time
hostip = self.installer.get_option('ip')
nova_conf.add('verbose', self.installer.get_bool_option('verbose'))
nova_conf.add('verbose', self.installer.get_bool_option('log_verbose'))
# Allow destination machine to match source for resize.
nova_conf.add('allow_resize_to_same_host', True)

View File

@ -102,7 +102,7 @@ nova_version: "1.1"
scheduler: nova.scheduler.filter_scheduler.FilterScheduler
# Should nova be in verbose mode?
verbose: True
log_verbose: True
# Virtualization settings
# Drivers known (libvirt, xensever, vmware, baremetal)