mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
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:
parent
6ceddf089f
commit
42df54df1c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user