Simplify long tests to only test target image rather than back to base image.
Removes verification of base image (dev channel) and instead re-updates to same image. Our checking of changing kernel partitions should make a good test. I think we're picking up bigs on old images and we don't really want to be testing that.
Change-Id: I4075d5c36eb190e4f037f05b40b032698dcd5c42
BUG=chromium-os:13027
TEST=Ran ctest with x86-generic.
Review URL: http://codereview.chromium.org/6801057
diff --git a/au_test_harness/au_test.py b/au_test_harness/au_test.py
index cc161e0..5a6549e 100644
--- a/au_test_harness/au_test.py
+++ b/au_test_harness/au_test.py
@@ -132,20 +132,15 @@
rather than wiping it.
"""
self.worker.InitializeResultsDirectory()
- # Just make sure some tests pass on original image. Some old images
- # don't pass many tests.
self.worker.PrepareBase(self.base_image_path)
- # TODO(sosa): move to 100% once we start testing using the autotest paired
- # with the dev channel.
- percent_passed = self.worker.VerifyImage(self, 10)
- # Update to - all tests should pass on new image.
+ # Update to
self.worker.PerformUpdate(self.target_image_path, self.base_image_path)
- percent_passed = self.worker.VerifyImage(self)
+ self.worker.VerifyImage(self)
- # Update from - same percentage should pass that originally passed.
- self.worker.PerformUpdate(self.base_image_path, self.target_image_path)
- self.worker.VerifyImage(self, percent_passed)
+ # Update from
+ self.worker.PerformUpdate(self.target_image_path, self.target_image_path)
+ self.worker.VerifyImage(self)
def testUpdateWipeStateful(self):
"""Tests if we can update after cleaning the stateful partition.
@@ -154,20 +149,17 @@
stateful partition.
"""
self.worker.InitializeResultsDirectory()
- # Just make sure some tests pass on original image. Some old images
- # don't pass many tests.
self.worker.PrepareBase(self.base_image_path)
- percent_passed = self.worker.VerifyImage(self, 10)
- # Update to - all tests should pass on new image.
+ # Update to
self.worker.PerformUpdate(self.target_image_path, self.base_image_path,
'clean')
self.worker.VerifyImage(self)
- # Update from - same percentage should pass that originally passed.
- self.worker.PerformUpdate(self.base_image_path, self.target_image_path,
+ # Update from
+ self.worker.PerformUpdate(self.target_image_path, self.target_image_path,
'clean')
- self.worker.VerifyImage(self, percent_passed)
+ self.worker.VerifyImage(self)
def testInterruptedUpdate(self):
"""Tests what happens if we interrupt payload delivery 3 times."""