Merge "boot: Relax getSnapshotMergeStatus test."

This commit is contained in:
David Anderson 2020-04-29 20:59:10 +00:00 committed by Gerrit Code Review
commit f32d41bd11

View file

@ -76,7 +76,11 @@ TEST_P(BootHidlTest, SetSnapshotMergeStatus) {
for (const auto value : ValidMergeStatusValues()) {
EXPECT_TRUE(boot->setSnapshotMergeStatus(value).withDefault(false));
auto status = boot->getSnapshotMergeStatus();
EXPECT_EQ(status, value);
if (value == MergeStatus::SNAPSHOTTED) {
EXPECT_TRUE(status == MergeStatus::SNAPSHOTTED || status == MergeStatus::NONE);
} else {
EXPECT_EQ(status, value);
}
}
}