aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-02-22 06:12:35 -0800
committerBryn M. Reeves <bmr@redhat.com>2013-02-22 06:12:35 -0800
commit8b82848804790965c8b6bc3628868c417d266b86 (patch)
tree57556eb42af9d5ef3f9f1a196917cd66af055673
parenta20b1c0440560d389b68b9ff2feeb6e94b8248e1 (diff)
parentb978dea0ebd07e290043762deb3defd10346e132 (diff)
downloadsos-8b82848804790965c8b6bc3628868c417d266b86.tar.gz
Merge pull request #99 from battlemidget/patch-2
Include new-line in shell_out
-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 fd9699fe..7b5a6a3b 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 = sosGetCommandOutput(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):