CLOUDSTACK-2882: We are mounting an ISO not a volume

So fdisk -l doesn't list the mounted iso. Instead use showmount -e to
find the mounted device.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 93f79e1a158cb1f69915a4036f5c1840a38c5e53)
This commit is contained in:
Prasanna Santhanam 2013-07-27 20:18:05 +05:30
parent 738523b57c
commit 40b59d7e2a

View File

@ -749,7 +749,7 @@ class TestVMLifeCycle(cloudstackTestCase):
else:
self.skipTest("No mount points matched. Mount was unsuccessful")
c = "fdisk -l|grep %s|head -1" % self.services["mount"]
c = "mount |grep %s|head -1" % self.services["mount"]
res = ssh_client.execute(c)
self.debug("Found a mount point at %s" % res)
@ -775,7 +775,7 @@ class TestVMLifeCycle(cloudstackTestCase):
self.assertEqual(
str(iso_size) in result,
True,
"Check size of the attached ISO"
"ISO size mismatch. reported size within guest %s" % str(iso_size)
)
try:
#Unmount ISO