aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/utilities_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py
index 9327b1f9..c4646926 100644
--- a/tests/utilities_tests.py
+++ b/tests/utilities_tests.py
@@ -69,7 +69,9 @@ class ExecutableTest(unittest.TestCase):
self.assertEquals(result['output'], "")
def test_output_chdir(self):
- result = sos_get_command_output("/usr/bin/pwd", chdir=TEST_DIR)
+ cmd = "/bin/bash -c 'echo $PWD'"
+ result = sos_get_command_output(cmd, chdir=TEST_DIR)
+ print(result)
self.assertEquals(result['status'], 0)
self.assertEquals(result['output'].strip(), TEST_DIR)