From cdfa2650602fd03df266b3edb5591e5d96eb248b Mon Sep 17 00:00:00 2001 From: Alex Brett Date: Wed, 4 Jun 2014 15:41:01 +0100 Subject: [PATCH] Fix for test_01_create_volume to use the correct volume name for KVM Signed-off-by: SrikanteswaraRao Talluri --- test/integration/smoke/test_volumes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/smoke/test_volumes.py b/test/integration/smoke/test_volumes.py index c58c53e5ba2..c6ea09d557e 100644 --- a/test/integration/smoke/test_volumes.py +++ b/test/integration/smoke/test_volumes.py @@ -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]))