Skip to content
This repository was archived by the owner on Sep 15, 2020. It is now read-only.

Commit 6cf0514

Browse files
committed
[tests] Update tests for ControlPersist
Minor changes to allow successful creation of a control socket for tests, and correcting the expected echo string. Signed-off-by: Jake Hunsaker <[email protected]>
1 parent e241438 commit 6cf0514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/sosnode_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class SosNodeTests(unittest.TestCase):
77

88
def setUp(self):
9-
args = {'nodes': 'localhost'}
9+
args = {'nodes': 'localhost', 'tmp_dir': '.'}
1010
self.config = Configuration(args=args)
1111
self.node = SosNode('127.0.0.1', self.config, force=True,
1212
load_facts=False)
@@ -21,4 +21,4 @@ def test_connect_local_check(self):
2121
def test_command_exec(self):
2222
out = self.node.run_command('echo sos-collector')
2323
self.assertEquals(out['status'], 0)
24-
self.assertEquals(out['stdout'], 'sos-collector\n')
24+
self.assertEquals(out['stdout'], u'sos-collector\r\n')

0 commit comments

Comments
 (0)