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:
parent
4a74c4585b
commit
2088135a5b
@ -856,6 +856,10 @@ class PythonTestingComponent(component.Component):
|
|||||||
cmd.append('--nologcapture')
|
cmd.append('--nologcapture')
|
||||||
for e in self._get_test_exclusions():
|
for e in self._get_test_exclusions():
|
||||||
cmd.append('--exclude=%s' % (e))
|
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
|
return cmd
|
||||||
|
|
||||||
def _use_pep8(self):
|
def _use_pep8(self):
|
||||||
@ -922,7 +926,7 @@ class PythonTestingComponent(component.Component):
|
|||||||
cmd = self._get_test_command()
|
cmd = self._get_test_command()
|
||||||
env = self._get_env()
|
env = self._get_env()
|
||||||
with open(os.devnull, 'wb') as null_fh:
|
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
|
null_fh = None
|
||||||
sh.execute(*cmd, stdout_fh=None, stderr_fh=null_fh,
|
sh.execute(*cmd, stdout_fh=None, stderr_fh=null_fh,
|
||||||
cwd=app_dir, env_overrides=env)
|
cwd=app_dir, env_overrides=env)
|
||||||
|
@ -286,7 +286,7 @@ class ConfConfigurator(object):
|
|||||||
# Used more than once so we calculate it ahead of time
|
# Used more than once so we calculate it ahead of time
|
||||||
hostip = self.installer.get_option('ip')
|
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.
|
# Allow destination machine to match source for resize.
|
||||||
nova_conf.add('allow_resize_to_same_host', True)
|
nova_conf.add('allow_resize_to_same_host', True)
|
||||||
|
@ -102,7 +102,7 @@ nova_version: "1.1"
|
|||||||
scheduler: nova.scheduler.filter_scheduler.FilterScheduler
|
scheduler: nova.scheduler.filter_scheduler.FilterScheduler
|
||||||
|
|
||||||
# Should nova be in verbose mode?
|
# Should nova be in verbose mode?
|
||||||
verbose: True
|
log_verbose: True
|
||||||
|
|
||||||
# Virtualization settings
|
# Virtualization settings
|
||||||
# Drivers known (libvirt, xensever, vmware, baremetal)
|
# Drivers known (libvirt, xensever, vmware, baremetal)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user