Fix execute mock for test_convert_image_with_errors
This was introduced in https://review.openstack.org/#/c/554437/ with the move of image conversion to privsep. Change-Id: Ia68b0124ce59a256df6666ee19b6ab03253969a1 Closes-Bug: #1776797
This commit is contained in:
parent
343c2bee23
commit
5e36e3342e
|
@ -50,7 +50,7 @@ class QemuTestCase(test.NoDBTestCase):
|
|||
self.assertTrue(str(image_info))
|
||||
|
||||
@mock.patch('nova.privsep.utils.supports_direct_io', return_value=True)
|
||||
@mock.patch.object(utils, 'execute',
|
||||
@mock.patch.object(processutils, 'execute',
|
||||
side_effect=processutils.ProcessExecutionError)
|
||||
def test_convert_image_with_errors(self, mocked_execute, mock_direct_io):
|
||||
self.assertRaises(exception.ImageUnacceptable,
|
||||
|
|
Loading…
Reference in New Issue