mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add test cases for stdin_raw_newlines functionality
This commit is contained in:
parent
6c38c1a253
commit
eba0b174d7
1 changed files with 12 additions and 0 deletions
|
@ -78,6 +78,18 @@ class CMDModuleTest(ModuleCase):
|
|||
),
|
||||
"four\nfive",
|
||||
)
|
||||
self.assertEqual(
|
||||
self.run_function(
|
||||
"cmd.run", ["cat"], stdin="one\\ntwo", stdin_raw_newlines=False
|
||||
),
|
||||
"one\ntwo",
|
||||
)
|
||||
self.assertEqual(
|
||||
self.run_function(
|
||||
"cmd.run", ["cat"], stdin="one\\ntwo", stdin_raw_newlines=True
|
||||
),
|
||||
"one\\ntwo",
|
||||
)
|
||||
self.assertEqual(
|
||||
self.run_function(
|
||||
"cmd.run", ['echo "a=b" | sed -e s/=/:/g'], python_shell=True
|
||||
|
|
Loading…
Add table
Reference in a new issue