mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
environment variable logic
This commit is contained in:
parent
37abb1d06a
commit
2573a74ac1
2 changed files with 3 additions and 3 deletions
|
@ -79,9 +79,9 @@ suites:
|
|||
verifier:
|
||||
name: shell
|
||||
remote_exec: false
|
||||
<% if ENV['TEST_JUNIT_XML_PATH'].nil? %>
|
||||
<% if ENV['TESTS_JUNIT_XML_PATH'].nil? %>
|
||||
command: pytest -v tests/integration/$KITCHEN_SUITE
|
||||
<% else %>
|
||||
command: pytest --junit-xml <%= ENV['TEST_JUNIT_XML_PATH'] % [ENV['KITCHEN_SUITE'], ENV['KITCHEN_PLATFORM']] %> -v tests/integration/$KITCHEN_SUITE
|
||||
command: pytest --junit-xml <%= ENV['TESTS_JUNIT_XML_PATH'] %> -v tests/integration/$KITCHEN_SUITE
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -49,7 +49,7 @@ def func_builder(testdir):
|
|||
def func(self):
|
||||
self.testdir = testdir
|
||||
if 'TESTS_XML_OUTPUT_DIR' in os.environ:
|
||||
self.env['TEST_JUNIT_XML_PATH'] = '{0}/kitchen.tests.{1}.%s.%s.xml'.format(
|
||||
self.env['TESTS_JUNIT_XML_PATH'] = '{0}/kitchen.tests.{1}.$KITCHEN_SUITE.$KITCHEN_PLATFORM.xml'.format(
|
||||
os.environ.get('TESTS_XML_OUTPUT_DIR'),
|
||||
self.testdir,
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue