Revert to fulls for boths tests if delta fails.

Change-Id: Iabc931f2eb1751ca9d05e92e64e5361755791648

BUG=
TEST=Copied and pasted from other try/except

Review URL: http://codereview.chromium.org/4109006
This commit is contained in:
Chris Sosa 2010-10-28 14:39:11 -07:00
parent 6ceddf089f
commit 42df54df1c

View File

@ -172,7 +172,17 @@ class AUTest(object):
# Update to - all tests should pass on new image.
Info('Updating from base image on vm to target image and wiping stateful.')
self.UpdateImage(target_image_path, 'clean')
try:
self.UpdateImage(target_image_path, 'clean')
except:
if self.use_delta_updates:
Warning('Delta update failed, disabling delta updates and retrying.')
self.use_delta_updates = False
self.source_image = ''
self.UpdateImage(target_image_path)
else:
raise
self.VerifyImage(100)
if self.use_delta_updates: self.source_image = target_image_path