From 40b59d7e2acfb88d65d9374e9723b7fe38eabf3c Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Sat, 27 Jul 2013 20:18:05 +0530 Subject: [PATCH] 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 (cherry picked from commit 93f79e1a158cb1f69915a4036f5c1840a38c5e53) --- test/integration/smoke/test_vm_life_cycle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_vm_life_cycle.py b/test/integration/smoke/test_vm_life_cycle.py index 7dab5cf26e7..8e5a8bbcdd7 100644 --- a/test/integration/smoke/test_vm_life_cycle.py +++ b/test/integration/smoke/test_vm_life_cycle.py @@ -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