aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utilities_tests.py
diff options
context:
space:
mode:
authorAdam Stokes <adam.stokes@ubuntu.com>2013-10-18 07:51:47 -0400
committerAdam Stokes <adam.stokes@ubuntu.com>2013-10-18 07:51:47 -0400
commitab9929b81d105c831db7b95502fc7c6707d38e21 (patch)
tree90f8216c671b9e2aaad43f1d5c2c37d00dc57427 /tests/utilities_tests.py
parent9f15c36f597f596662810d25e092676785fac747 (diff)
downloadsos-ab9929b81d105c831db7b95502fc7c6707d38e21.tar.gz
Fix shell output unittests
Since fix for 0ed431a went in we revert our unittests to the old (working) behavior. Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r--tests/utilities_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py
index 9cce51a4..fc9e858f 100644
--- a/tests/utilities_tests.py
+++ b/tests/utilities_tests.py
@@ -78,7 +78,7 @@ class ExecutableTest(unittest.TestCase):
path = os.path.join(TEST_DIR, 'test_exe.py')
ret, out, junk = sos_get_command_output(path)
self.assertEquals(ret, 0)
- self.assertEquals(out, "executed")
+ self.assertEquals(out, "executed\n")
def test_output_non_exe(self):
path = os.path.join(TEST_DIR, 'utility_tests.py')
@@ -88,7 +88,7 @@ class ExecutableTest(unittest.TestCase):
def test_shell_out(self):
path = os.path.join(TEST_DIR, 'test_exe.py')
- self.assertEquals("executed", shell_out(path))
+ self.assertEquals("executed\n", shell_out(path))
class FindTest(unittest.TestCase):