summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-04-04 00:42:23 +0000
committerGerrit Code Review <review@openstack.org>2012-04-04 00:42:23 +0000
commit01b9cece5ca4232648ca305eb7e08e8b45176426 (patch)
tree37c3176c42fc23911afdc920f151690415b8db6c /nova/tests
parent06407be0da134db23cfd02fe320caa5c444315c2 (diff)
parentcf7c0a7c10723495953be9bf99aedbe3838e0787 (diff)
Merge "Get unit tests functional in OS X"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_libvirt.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index ef0307158..59b9fe460 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -916,6 +916,12 @@ class LibvirtConnTestCase(test.TestCase):
self.stubs.Set(os, 'open', os_open_stub)
+ def connection_supports_direct_io_stub(*args, **kwargs):
+ return directio_supported
+
+ self.stubs.Set(connection.LibvirtConnection,
+ '_supports_direct_io', connection_supports_direct_io_stub)
+
user_context = context.RequestContext(self.user_id, self.project_id)
instance_ref = db.instance_create(user_context, self.test_instance)
network_info = _fake_network_info(self.stubs, 1)