removed the slash when using slspath

This commit is contained in:
Steve Weber 2014-09-29 19:18:10 -04:00 committed by rallytime
parent ce92865117
commit a0c3723c96

View file

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