Merge "Add property to prevent commit for Vts test"

am: 5bcfb5bf45

Change-Id: Ic6b0e863fb9c6ddea2cb19390a9520c3c87cf704
This commit is contained in:
Paul Lawrence 2019-06-27 16:26:57 -07:00 committed by android-build-merger
commit 3507d68556

View file

@ -150,6 +150,11 @@ Status cp_commitChanges() {
if (!isCheckpointing) {
return Status::ok();
}
if (android::base::GetProperty("persist.vold.dont_commit_checkpoint", "0") == "1") {
LOG(WARNING)
<< "NOT COMMITTING CHECKPOINT BECAUSE persist.vold.dont_commit_checkpoint IS 1";
return Status::ok();
}
sp<IBootControl> module = IBootControl::getService();
if (module) {
CommandResult cr;