test: firmware verificationCompleted: stat(session)
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I02938bc8f9aa07ae2822e9d766683f6517a7a5ef
diff --git a/firmware_handler.cpp b/firmware_handler.cpp
index 6ebc559..57fd24d 100644
--- a/firmware_handler.cpp
+++ b/firmware_handler.cpp
@@ -212,9 +212,14 @@
{
value = VerifyCheckResponses::other;
}
+ else if (state == UpdateState::verificationCompleted)
+ {
+ value = lastVerificationResponse;
+ }
else
{
value = verification->checkVerificationState();
+ lastVerificationResponse = value;
}
meta->metadata.push_back(static_cast<std::uint8_t>(value));