You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ta...@apache.org on 2014/06/11 12:33:16 UTC
git commit: updated refs/heads/4.4-forward to 280d167
Repository: cloudstack
Updated Branches:
refs/heads/4.4-forward f14f36170 -> 280d16731
Fix for test_01_create_volume to use the correct volume name for KVM
Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/280d1673
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/280d1673
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/280d1673
Branch: refs/heads/4.4-forward
Commit: 280d167316d92a8d24d0917f8945b408b87677a8
Parents: f14f361
Author: Alex Brett <al...@citrix.com>
Authored: Wed Jun 4 15:41:01 2014 +0100
Committer: SrikanteswaraRao Talluri <ta...@apache.org>
Committed: Wed Jun 11 16:02:52 2014 +0530
----------------------------------------------------------------------
test/integration/smoke/test_volumes.py | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/280d1673/test/integration/smoke/test_volumes.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_volumes.py b/test/integration/smoke/test_volumes.py
index d6db63f..2e41aa7 100644
--- a/test/integration/smoke/test_volumes.py
+++ b/test/integration/smoke/test_volumes.py
@@ -207,6 +207,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]))