mirror of https://github.com/apache/cloudstack.git
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 93f79e1a15)
This commit is contained in:
parent
738523b57c
commit
40b59d7e2a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue