diff options
| author | Tao Bao <tbao@google.com> | 2018-07-10 06:19:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-07-10 06:19:19 +0000 |
| commit | e02cbaaa629444772cdf92e35f1b2867084d30f9 (patch) | |
| tree | 9ee75d9e178f99e7eb34a7b47e98e06f6d6e79ab /tests/component/updater_test.cpp | |
| parent | b9b50cd58c9864e9b12c3045531b67d5edb59fd0 (diff) | |
| parent | 7c1d426dbc4f5539929247027e4bd1c33ec63471 (diff) | |
| download | android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.gz android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.tar.bz2 android_bootable_recovery-e02cbaaa629444772cdf92e35f1b2867084d30f9.zip | |
Merge "applypatch: Restrict applypatch_check to eMMC targets."
Diffstat (limited to 'tests/component/updater_test.cpp')
| -rw-r--r-- | tests/component/updater_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/component/updater_test.cpp b/tests/component/updater_test.cpp index 0b6b96f7..f50e861b 100644 --- a/tests/component/updater_test.cpp +++ b/tests/component/updater_test.cpp @@ -250,8 +250,10 @@ TEST_F(UpdaterTest, apply_patch_check) { expect("t", cmd.c_str(), kNoCause); // Multiple arguments. + // As long as it successfully loads the partition specified in filename, it won't check against + // any given SHAs. cmd = "apply_patch_check(\"" + filename + "\", \"wrong_sha1\", \"wrong_sha2\")"; - expect("", cmd.c_str(), kNoCause); + expect("t", cmd.c_str(), kNoCause); cmd = "apply_patch_check(\"" + filename + "\", \"wrong_sha1\", \"" + src_hash + "\", \"wrong_sha2\")"; |
