cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tall...@apache.org
Subject git commit: updated refs/heads/master to cdfa265
Date Wed, 11 Jun 2014 10:32:25 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master dd26d4db6 -> cdfa26506


Fix for test_01_create_volume to use the correct volume name for KVM

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cdfa2650
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cdfa2650
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cdfa2650

Branch: refs/heads/master
Commit: cdfa2650602fd03df266b3edb5591e5d96eb248b
Parents: dd26d4d
Author: Alex Brett <alex.brett@citrix.com>
Authored: Wed Jun 4 15:41:01 2014 +0100
Committer: SrikanteswaraRao Talluri <talluri@apache.org>
Committed: Wed Jun 11 16:02:03 2014 +0530

----------------------------------------------------------------------
 test/integration/smoke/test_volumes.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cdfa2650/test/integration/smoke/test_volumes.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_volumes.py b/test/integration/smoke/test_volumes.py
index c58c53e..c6ea09d 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]))


Mime
View raw message