mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 14:11:07 +02:00
This CL is a large refactoring that moves the test_harness from using sub-classed classes of au_test into a one where we have the same AU_Test for all test flows but different test workers that operate on different types of machines. Specifically we move the VM / Real-image specific logic into real_au_worker and vm_au_worker. There isn't anything functionally different in this change. Also, we move the classes into their own modules and clean up use of cros_build_lib to be more stylistically correct. Change-Id: I3e25141174c3d5ba22962bf94365815e69e5bedf BUG=chromium-os:11172 TEST=Ran with simple and full w/ w/out delta update payloads and with unittest and without unittest keys. Ran real test using full suite on test device using full update payloads. Review URL: http://codereview.chromium.org/6597122
12 lines
401 B
Python
12 lines
401 B
Python
# 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 update exceptions."""
|
|
|
|
class UpdateException(Exception):
|
|
"""Exception thrown when _UpdateImage or _UpdateUsingPayload fail"""
|
|
def __init__(self, code, stdout):
|
|
self.code = code
|
|
self.stdout = stdout
|