shell tests: strip whitespace from shell return

This commit is contained in:
Justin Findlay 2016-02-29 13:13:57 -07:00
parent c94dfb870f
commit 2f1c0cf809

View File

@ -57,7 +57,7 @@ class EnabledTest(integration.ModuleCase):
try:
salt.utils.fopen(state_file, 'w').write(textwrap.dedent('''\
{{% set shell_enabled = salt['cmd.run']("{0}") %}}
{{% set shell_enabled = salt['cmd.run']("{0}").strip() %}}
shell_enabled:
test.configurable_test_state: