1# -*- coding: utf-8 -*-
2# Copyright 2019 The Chromium OS Authors. All rights reserved.
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
8from __future__ import print_function
9
10import enum
11
12
13class FailureModes(enum.Enum):
14  """Different modes for the patch manager when handling a failed patch."""
15
16  FAIL = 'fail'
17  CONTINUE = 'continue'
18  DISABLE_PATCHES = 'disable_patches'
19  BISECT_PATCHES = 'bisect_patches'
20  REMOVE_PATCHES = 'remove_patches'
21
22  # Only used by 'bisect_patches'.
23  INTERNAL_BISECTION = 'internal_bisection'
24