mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix for test_01_create_volume to use the correct volume name for KVM
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
dd26d4db63
commit
cdfa265060
@ -223,6 +223,10 @@ class TestCreateVolume(cloudstackTestCase):
|
||||
volume_name = "/dev/xvd" + chr(ord('a') + int(list_volume_response[0].deviceid))
|
||||
self.debug(" Using XenServer volume_name: %s" % (volume_name))
|
||||
ret = checkVolumeSize(ssh_handle=ssh,volume_name=volume_name,size_to_verify=vol_sz)
|
||||
elif list_volume_response[0].hypervisor.lower() == "kvm":
|
||||
volume_name = "/dev/vd" + chr(ord('a') + int(list_volume_response[0].deviceid))
|
||||
self.debug(" Using KVM volume_name: %s" % (volume_name))
|
||||
ret = checkVolumeSize(ssh_handle=ssh,volume_name=volume_name,size_to_verify=vol_sz)
|
||||
else:
|
||||
ret = checkVolumeSize(ssh_handle=ssh,size_to_verify=vol_sz)
|
||||
self.debug(" Volume Size Expected %s Actual :%s" %(vol_sz,ret[1]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user