releasetools: Fix an issue in common.GetAvbPartitionArg.

It's a bug introduced in commit 1aeef725a7, which affects unittest only.

Bug: 130351427
Test: Use a lunch'd target. Run
      `atest --host releasetools_test releasetools_py3_test`.
Change-Id: I7ff01a6af47d002e1203bd376d477b60d769cbd1
This commit is contained in:
Tao Bao
2019-10-14 17:49:31 -07:00
parent 21fb765515
commit 3612c88ed7
2 changed files with 34 additions and 1 deletions

View File

@@ -882,7 +882,7 @@ def GetAvbPartitionArg(partition, image, info_dict=None):
# boot chain, to be verified with AVB_SLOT_VERIFY_FLAGS_NO_VBMETA_PARTITION.
# See details at
# https://android.googlesource.com/platform/external/avb/+/master/README.md#booting-into-recovery.
if OPTIONS.info_dict.get("ab_update") != "true" and partition == "recovery":
if info_dict.get("ab_update") != "true" and partition == "recovery":
return []
# Otherwise chain the partition into vbmeta.