summaryrefslogtreecommitdiffstats
path: root/updater_sample/tools/test_gen_update_config.py
diff options
context:
space:
mode:
authorZhomart Mukhamejanov <zhomart@google.com>2018-08-21 21:19:02 +0200
committerZhomart Mukhamejanov <zhomart@google.com>2018-08-22 20:37:51 +0200
commit88712f7610c1c51ee9a58e17ad9f3e1b8425eba9 (patch)
treefb12b4509b8a8d7a07478433e33241de5c12fdea /updater_sample/tools/test_gen_update_config.py
parentMerge "recovery: Add "boot-fastboot" command to BCB." (diff)
downloadandroid_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.tar
android_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.tar.gz
android_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.tar.bz2
android_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.tar.lz
android_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.tar.xz
android_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.tar.zst
android_bootable_recovery-88712f7610c1c51ee9a58e17ad9f3e1b8425eba9.zip
Diffstat (limited to 'updater_sample/tools/test_gen_update_config.py')
-rwxr-xr-xupdater_sample/tools/test_gen_update_config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/updater_sample/tools/test_gen_update_config.py b/updater_sample/tools/test_gen_update_config.py
index c907cf2f9..8b77cb2a2 100755
--- a/updater_sample/tools/test_gen_update_config.py
+++ b/updater_sample/tools/test_gen_update_config.py
@@ -32,7 +32,7 @@ class GenUpdateConfigTest(unittest.TestCase): # pylint: disable=missing-docstrin
def test_ab_install_type_streaming(self):
"""tests if streaming property files' offset and size are generated properly"""
config, package = self._generate_config()
- property_files = config['ab_streaming_metadata']['property_files']
+ property_files = config['ab_config']['property_files']
self.assertEqual(len(property_files), 6)
with open(package, 'rb') as pkg_file:
for prop in property_files:
@@ -56,6 +56,8 @@ class GenUpdateConfigTest(unittest.TestCase): # pylint: disable=missing-docstrin
'../tests/res/raw/ota_002_package.zip')
gen = GenUpdateConfig(ota_package,
'file:///foo.bar',
- GenUpdateConfig.AB_INSTALL_TYPE_STREAMING)
+ GenUpdateConfig.AB_INSTALL_TYPE_STREAMING,
+ True, # ab_force_switch_slot
+ True) # ab_verify_payload_metadata
gen.run()
return gen.config, ota_package