summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2013-02-16 20:43:34 +1100
committerMichael Still <mikal@stillhq.com>2013-02-16 20:44:09 +1100
commitb0e48646ed93cc4e798942ff1a645c01393be458 (patch)
tree19e1ac79a859565a6bbc390c6bfe2177fe72e8e5 /nova
parentdc5a994e333c743f8ae8970ce0a2d8ca8c48d9f3 (diff)
downloadnova-b0e48646ed93cc4e798942ff1a645c01393be458.tar.gz
nova-b0e48646ed93cc4e798942ff1a645c01393be458.tar.xz
nova-b0e48646ed93cc4e798942ff1a645c01393be458.zip
Stop unit test for prompting for a sudo password.
No idea how this got this far without being detected. Change-Id: I5ddf3b4d2ad831fd32008a43d6884fc09405c117
Diffstat (limited to 'nova')
-rw-r--r--nova/tests/virt/disk/test_nbd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/virt/disk/test_nbd.py b/nova/tests/virt/disk/test_nbd.py
index 59b0784d9..750506882 100644
--- a/nova/tests/virt/disk/test_nbd.py
+++ b/nova/tests/virt/disk/test_nbd.py
@@ -141,6 +141,8 @@ class NbdTestCase(test.TestCase):
def test_inner_get_dev_no_devices(self):
tempdir = self.useFixture(fixtures.TempDir()).path
+ self.stubs.Set(nbd.NbdMount, '_detect_nbd_devices',
+ _fake_detect_nbd_devices_none)
n = nbd.NbdMount(None, tempdir)
self.assertFalse(n._inner_get_dev())