diff options
| author | Eric Harney <eharney@redhat.com> | 2013-05-15 17:24:13 -0400 |
|---|---|---|
| committer | Eric Harney <eharney@redhat.com> | 2013-05-22 11:33:08 -0400 |
| commit | dc48d3d14978ebb9afe6d1371b2af988107b7f5d (patch) | |
| tree | ee77025efcaa30cf77ab62644f2b03d32bdc6d1c /nova/tests | |
| parent | 05be719ec76adf60a151b56d695c59fd832cb22b (diff) | |
Remove path_exists from NFS/GlusterFS drivers
mkdir -p will not throw an error if the path already exists,
so this method is unneeded in these classes.
Change-Id: I65a67cb75f83f65a6f80c7a90f77c2c5133bd41b
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/virt/libvirt/test_libvirt_volume.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/virt/libvirt/test_libvirt_volume.py b/nova/tests/virt/libvirt/test_libvirt_volume.py index 86773dd10..59e7d7fea 100644 --- a/nova/tests/virt/libvirt/test_libvirt_volume.py +++ b/nova/tests/virt/libvirt/test_libvirt_volume.py @@ -444,7 +444,7 @@ class LibvirtVolumeTestCase(test.TestCase): libvirt_driver.disconnect_volume(connection_info, "vde") expected_commands = [ - ('stat', export_mnt_base), + ('mkdir', '-p', export_mnt_base), ('mount', '-t', 'nfs', export_string, export_mnt_base)] self.assertEqual(self.executes, expected_commands) @@ -500,7 +500,7 @@ class LibvirtVolumeTestCase(test.TestCase): libvirt_driver.disconnect_volume(connection_info, "vde") expected_commands = [ - ('stat', export_mnt_base), + ('mkdir', '-p', export_mnt_base), ('mount', '-t', 'glusterfs', export_string, export_mnt_base)] self.assertEqual(self.executes, expected_commands) |
