Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca5e0aea authored by Tianjie Xu's avatar Tianjie Xu Committed by Automerger Merge Worker
Browse files

Merge "Fix unittest that checks build id" am: f1c8904e

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1874836

Change-Id: I0e0262187f797b1e1f05026ccdf3b371236e5a87
parents faa64ee1 f1c8904e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ TEST(property_service, check_fingerprint_with_legacy_build_id) {

    std::string vbmeta_digest = GetProperty("ro.boot.vbmeta.digest", "");
    ASSERT_GE(vbmeta_digest.size(), 8u);
    std::string build_id = GetProperty("ro.boot.build.id", "");
    std::string build_id = GetProperty("ro.build.id", "");
    // Check that the build id is constructed with the prefix of vbmeta digest
    std::string expected_build_id = legacy_build_id + "." + vbmeta_digest.substr(0, 8);
    ASSERT_EQ(expected_build_id, build_id);