summaryrefslogtreecommitdiffstats
path: root/tests/component
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-07 08:18:14 +0200
committerTao Bao <tbao@google.com>2018-07-10 06:13:56 +0200
commit7c1d426dbc4f5539929247027e4bd1c33ec63471 (patch)
tree21a44d8e8727d95197bc7acd5bd9cafac3b8eef4 /tests/component
parentMerge "updater: Remove the support for sha1_check()." (diff)
downloadandroid_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.tar
android_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.tar.gz
android_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.tar.bz2
android_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.tar.lz
android_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.tar.xz
android_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.tar.zst
android_bootable_recovery-7c1d426dbc4f5539929247027e4bd1c33ec63471.zip
Diffstat (limited to 'tests/component')
-rw-r--r--tests/component/updater_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/component/updater_test.cpp b/tests/component/updater_test.cpp
index 0b6b96f7c..f50e861b0 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\")";