Use the right base path for vm updates.

Change-Id: I98276b26b85e48ae4b65e8f3fb65540b24665f9a

BUG=Will file
TEST=Ran it

Review URL: http://codereview.chromium.org/4185008
This commit is contained in:
Chris Sosa 2010-10-28 03:41:14 -07:00
parent 0e84847681
commit 9b76b421e4

View File

@ -252,6 +252,8 @@ class VirtualAUTest(unittest.TestCase, AUTest):
def UpdateImage(self, image_path, stateful_change='old'):
"""Updates VM image with image_path."""
stateful_change_flag = self.GetStatefulChangeFlag(stateful_change)
if self.source_image == base_image_path:
self.source_image = self.vm_image_path
RunCommand(['%s/cros_run_vm_update' % self.crosutilsbin,
'--update_image_path=%s' % image_path,