summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/tests/test_utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/tests/test_utils.py b/nova/tests/test_utils.py
index d2b122121..1367dd841 100644
--- a/nova/tests/test_utils.py
+++ b/nova/tests/test_utils.py
@@ -79,13 +79,14 @@ exit 1
def test_unknown_kwargs_raises_error(self):
self.assertRaises(exception.Error,
utils.execute,
- '/bin/true', this_is_not_a_valid_kwarg=True)
+ '/usr/bin/env', 'true',
+ this_is_not_a_valid_kwarg=True)
def test_check_exit_code_boolean(self):
- utils.execute('/bin/false', check_exit_code=False)
+ utils.execute('/usr/bin/env', 'false', check_exit_code=False)
self.assertRaises(exception.ProcessExecutionError,
utils.execute,
- '/bin/false', check_exit_code=True)
+ '/usr/bin/env', 'false', check_exit_code=True)
def test_no_retry_on_success(self):
fd, tmpfilename = tempfile.mkstemp()