Merge "boot: Relax getSnapshotMergeStatus test."
This commit is contained in:
commit
f32d41bd11
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue