Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: au_test_harness/au_test.py

Issue 6815003: This CL updates the parallel job library in the au test harness to be more robust. (Closed) Base URL: http://git.chromium.org/git/crostestutils.git@master
Patch Set: Last fixes Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | au_test_harness/au_worker.py » ('j') | au_test_harness/parallel_test_job.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: au_test_harness/au_test.py
diff --git a/au_test_harness/au_test.py b/au_test_harness/au_test.py
index cc161e042dc3b32ef923e5dd2ba50b1f04c32fe3..69df8208451625795ffd2efe8b720b46f48c4c71 100644
--- a/au_test_harness/au_test.py
+++ b/au_test_harness/au_test.py
@@ -131,7 +131,7 @@ class AUTest(unittest.TestCase):
This test checks that we can update by updating the stateful partition
rather than wiping it.
"""
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9222)
# Just make sure some tests pass on original image. Some old images
# don't pass many tests.
self.worker.PrepareBase(self.base_image_path)
@@ -153,7 +153,7 @@ class AUTest(unittest.TestCase):
This test checks that we can update successfully after wiping the
stateful partition.
"""
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9223)
# Just make sure some tests pass on original image. Some old images
# don't pass many tests.
self.worker.PrepareBase(self.base_image_path)
@@ -201,7 +201,7 @@ class AUTest(unittest.TestCase):
self.data_size += len(data)
return data
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9224)
self.AttemptUpdateWithFilter(InterruptionFilter(), proxy_port=8082)
def testDelayedUpdate(self):
@@ -232,7 +232,7 @@ class AUTest(unittest.TestCase):
self.data_size += len(data)
return data
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9225)
self.AttemptUpdateWithFilter(DelayedFilter(), proxy_port=8083)
def SimpleTest(self):
@@ -241,7 +241,7 @@ class AUTest(unittest.TestCase):
We explicitly don't use test prefix so that isn't run by default. Can be
run using test_prefix option.
"""
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9226)
self.worker.PrepareBase(self.base_image_path)
self.worker.PerformUpdate(self.target_image_path, self.base_image_path)
self.worker.VerifyImage(self)
@@ -251,7 +251,7 @@ class AUTest(unittest.TestCase):
# TODO(sosa): Get test to work with verbose.
def NotestPartialUpdate(self):
"""Tests what happens if we attempt to update with a truncated payload."""
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9227)
# Preload with the version we are trying to test.
self.worker.PrepareBase(self.target_image_path)
@@ -270,7 +270,7 @@ class AUTest(unittest.TestCase):
# TODO(sosa): Get test to work with verbose.
def NotestCorruptedUpdate(self):
"""Tests what happens if we attempt to update with a corrupted payload."""
- self.worker.InitializeResultsDirectory()
+ self.worker.Initialize(9228)
# Preload with the version we are trying to test.
self.worker.PrepareBase(self.target_image_path)
« no previous file with comments | « no previous file | au_test_harness/au_worker.py » ('j') | au_test_harness/parallel_test_job.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698