Verify sequence ops when finish writing InstallOps am: 9e5e1ed627

Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1839176

Change-Id: I07d6f08aeb93c9a66e7364478d18332cf1f5ab4d
diff --git a/payload_consumer/vabc_partition_writer.cc b/payload_consumer/vabc_partition_writer.cc
index 6ca94c1..1ae82b5 100644
--- a/payload_consumer/vabc_partition_writer.cc
+++ b/payload_consumer/vabc_partition_writer.cc
@@ -280,7 +280,9 @@
   // Add a hardcoded magic label to indicate end of all install ops. This label
   // is needed by filesystem verification, don't remove.
   TEST_AND_RETURN_FALSE(cow_writer_ != nullptr);
-  return cow_writer_->AddLabel(kEndOfInstallLabel);
+  TEST_AND_RETURN_FALSE(cow_writer_->AddLabel(kEndOfInstallLabel));
+  TEST_AND_RETURN_FALSE(cow_writer_->Finalize());
+  return cow_writer_->VerifyMergeOps();
 }
 
 VABCPartitionWriter::~VABCPartitionWriter() {