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

Unified Diff: bin/au_test_harness/dummy_au_worker.py

Issue 6717011: Remove au_test_harness code and change symlinks to point to new location (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 9 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 | « bin/au_test_harness/dev_server_wrapper.py ('k') | bin/au_test_harness/parallel_test_job.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/au_test_harness/dummy_au_worker.py
diff --git a/bin/au_test_harness/dummy_au_worker.py b/bin/au_test_harness/dummy_au_worker.py
deleted file mode 100644
index fa1bee042a5b37b9d3889fff6b2d9ffa7cf82860..0000000000000000000000000000000000000000
--- a/bin/au_test_harness/dummy_au_worker.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Module containing a fake au worker class."""
-
-import unittest
-
-import au_worker
-
-class DummyAUWorker(au_worker.AUWorker):
- """AU worker that emulates work for an au_worker without actually doing work.
-
- Collects different updates that would be generated that can be obtained
- from the class object delta_list.
- """
-
- # Class variable that stores the list of payloads that would be needed.
- delta_list = {}
-
- def __init__(self, options, test_results_root):
- au_worker.AUWorker.__init__(self, options, test_results_root)
- self.au_type = options.type
-
- def PrepareBase(self, image_path):
- """Copy how the actual worker would prepare the base image."""
- if self.au_type == 'vm':
- self.PrepareVMBase(image_path)
- else:
- self.PrepareRealBase(image_path)
-
- def UpdateImage(self, image_path, src_image_path='', stateful_change='old',
- proxy_port=None, private_key_path=None):
- """Emulate Update and record the update payload in delta_list."""
- if self.au_type == 'vm' and src_image_path and self._first_update:
- src_image_path = self.vm_image_path
- self._first_update = False
-
- # Generate a value that combines delta with private key path.
- val = src_image_path
- if private_key_path: val = '%s+%s' % (val, private_key_path)
- if not self.delta_list.has_key(image_path):
- self.delta_list[image_path] = set([val])
- else:
- self.delta_list[image_path].add(val)
« no previous file with comments | « bin/au_test_harness/dev_server_wrapper.py ('k') | bin/au_test_harness/parallel_test_job.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698