summaryrefslogtreecommitdiffstats
path: root/tests/component
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-10 08:35:39 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-07-10 08:35:39 +0200
commitca16ae1b0437af47949b10ceefb07683ebf13847 (patch)
tree0c8f5ad6e98eb25bf69a93252d68affaf64813b9 /tests/component
parentMerge "applypatch: Fix a potential nullptr dereferencing." am: b9b50cd58c am: 471053ba87 (diff)
parentMerge "applypatch: Restrict applypatch_check to eMMC targets." am: e02cbaaa62 (diff)
downloadandroid_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.tar
android_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.tar.gz
android_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.tar.bz2
android_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.tar.lz
android_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.tar.xz
android_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.tar.zst
android_bootable_recovery-ca16ae1b0437af47949b10ceefb07683ebf13847.zip
Diffstat (limited to '')
-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\")";