mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
log junit for each suite and platform
This commit is contained in:
parent
7410ffd92a
commit
e6432ee049
3 changed files with 2 additions and 2 deletions
|
@ -80,5 +80,5 @@ suites:
|
|||
verifier:
|
||||
name: shell
|
||||
remote_exec: false
|
||||
command: pytest -v tests/integration/$KITCHEN_SUITE
|
||||
command: pytest --junit-xml <%= ENV['TEST_JUNIT_XML_PREFIX'] % [ENV['KITCHEN_SUITE'], ENV['KITCHEN_PLATFORM']] %> -v tests/integration/$KITCHEN_SUITE
|
||||
<% end %>
|
||||
|
|
|
@ -38,7 +38,7 @@ def func_builder(testdir):
|
|||
'SALT_SDIST_PATH': os.path.join(self.topdir, 'dist', 'salt-{0}.tar.gz'.format(setup.__version__)),
|
||||
}
|
||||
if 'TESTS_XML_OUTPUT_DIR' in os.environ:
|
||||
env['PYTEST_ADDOPTS'] = '--junit-xml {0}/kitchen.tests.{1}.xml'.format(
|
||||
env['TEST_JUNIT_XML_PREFIX'] = '--junit-xml {0}/kitchen.tests.{1}.%s.%s.xml'.format(
|
||||
os.environ.get('TESTS_XML_OUTPUT_DIR'),
|
||||
testdir,
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue