log junit for each suite and platform

This commit is contained in:
Daniel Wallace 2017-10-11 21:19:19 -06:00
parent 7410ffd92a
commit e6432ee049
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48
3 changed files with 2 additions and 2 deletions

View file

@ -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 %>

View file

@ -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,
)