• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- coding: utf-8 -*-
2# Copyright 2019 The ChromiumOS Authors
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""Failure mode constants avaiable to the patch manager."""
7
8
9import enum
10
11
12class FailureModes(enum.Enum):
13    """Different modes for the patch manager when handling a failed patch."""
14
15    FAIL = "fail"
16    CONTINUE = "continue"
17    DISABLE_PATCHES = "disable_patches"
18    BISECT_PATCHES = "bisect_patches"
19    REMOVE_PATCHES = "remove_patches"
20
21    # Only used by 'bisect_patches'.
22    INTERNAL_BISECTION = "internal_bisection"
23