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

Unified Diff: frontend/planner/failure_actions.py

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 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 | « frontend/planner/execution_engine_unittest.py ('k') | frontend/planner/models.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frontend/planner/failure_actions.py
diff --git a/frontend/planner/failure_actions.py b/frontend/planner/failure_actions.py
new file mode 100644
index 0000000000000000000000000000000000000000..2dd37f5b7bba983d5320f5f6cfc4841e15f61634
--- /dev/null
+++ b/frontend/planner/failure_actions.py
@@ -0,0 +1,17 @@
+import common
+from autotest_lib.client.common_lib import enum, utils
+
+
+def _site_host_actions_dummy():
+ return []
+
+_site_host_actions = utils.import_site_function(
+ __file__, 'autotest_lib.frontend.planner.site_failure_actions',
+ 'site_host_actions', _site_host_actions_dummy)
+
+HostAction = enum.Enum(
+ string_values=True,
+ *(_site_host_actions() + ['Block', 'Unblock', 'Reinstall']))
+
+
+TestAction = enum.Enum('Skip', 'Rerun', string_values=True)
« no previous file with comments | « frontend/planner/execution_engine_unittest.py ('k') | frontend/planner/models.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698