mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
removed the slash when using slspath
This commit is contained in:
parent
ce92865117
commit
a0c3723c96
1 changed files with 11 additions and 0 deletions
|
@ -268,6 +268,17 @@ G:
|
|||
list('ABCDEFG')
|
||||
)
|
||||
|
||||
def test_slsdir(self):
|
||||
result = render_sls('''
|
||||
formula/woot.sls:
|
||||
cmd.run:
|
||||
- name: echo {{ slspath }}
|
||||
- cwd: /
|
||||
''', sls='formula.woot', argline='yaml . jinja')
|
||||
|
||||
r = result['formula/woot.sls']['cmd.run'][0]['name']
|
||||
self.assertEqual(r, 'echo formula/woot')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from integration import run_tests
|
||||
|
|
Loading…
Add table
Reference in a new issue