xref: /aosp_15_r20/external/toolchain-utils/llvm_tools/failure_modes.py (revision 760c253c1ed00ce9abd48f8546f08516e57485fe)
1# Copyright 2019 The ChromiumOS Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""Failure mode constants avaiable to the patch manager."""
6
7import enum
8
9
10class FailureModes(enum.Enum):
11    """Different modes for the patch manager when handling a failed patch."""
12
13    FAIL = "fail"
14    CONTINUE = "continue"
15    DISABLE_PATCHES = "disable_patches"
16    BISECT_PATCHES = "bisect_patches"
17
18    # Only used by 'bisect_patches'.
19    INTERNAL_BISECTION = "internal_bisection"
20