Complete the structured failure proto with context
Test: unit tests
Bug: 150401112
Change-Id: Ic4e94e762ceefbdb7016efea3986b016dc34de18
diff --git a/proto/test_record.proto b/proto/test_record.proto
index c00058d..96553c7 100644
--- a/proto/test_record.proto
+++ b/proto/test_record.proto
@@ -97,6 +97,9 @@
// A more detailed failure status description.
FailureStatus failure_status = 3;
+
+ // Optional context to the failure
+ DebugInfoContext debug_info_context = 4;
}
// A Fail TestStatus can be associated with a more granular failure status that helps understanding
@@ -115,4 +118,13 @@
SYSTEM_UNDER_TEST_CRASHED = 20;
// The test was expected to run but did not.
NOT_EXECUTED = 30;
+}
+
+// A context to DebugInfo that allows to optionally specify some debugging context.
+message DebugInfoContext {
+ // Category of the action that was in progress during the failure
+ string action_in_progress = 1;
+
+ // A free-formed text that can help debugging the issue at hand.
+ string debug_help_message = 10;
}
\ No newline at end of file