diff options
author | Nikita Ioffe <ioffe@google.com> | 2020-03-23 22:04:50 +0000 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2020-03-23 22:23:12 +0000 |
commit | 81df65e0c119d20232745674a7cae02c53485f23 (patch) | |
tree | c234327de877b4658e78d5361a3a078a6fedfef3 /apexer/apexer_test.py | |
parent | 95746cf22dd0176a42b8bfd54b843c5c1aa83355 (diff) |
Also store override_package_name and logging_parent in apex_build_info
This will help signing tools to preserve correct package_name and
logging_parent tag of the outer APK container of an APEX
Test: apexer_test
Bug: 152084536
Change-Id: I7569acf20efe6ff64c3bdc7c43c07a0690c27bee
Diffstat (limited to 'apexer/apexer_test.py')
-rw-r--r-- | apexer/apexer_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apexer/apexer_test.py b/apexer/apexer_test.py index fce2f0f..db99c67 100644 --- a/apexer/apexer_test.py +++ b/apexer/apexer_test.py @@ -32,6 +32,8 @@ logger = logging.getLogger(__name__) TEST_APEX = "com.android.example.apex" TEST_APEX_LEGACY = "com.android.example-legacy.apex" +TEST_APEX_WITH_LOGGING_PARENT = "com.android.example-logging_parent.apex" +TEST_APEX_WITH_OVERRIDDEN_PACKAGE_NAME = "com.android.example-overridden_package_name.apex" TEST_PRIVATE_KEY = os.path.join("testdata", "com.android.example.apex.pem") TEST_X509_KEY = os.path.join("testdata", "com.android.example.apex.x509.pem") @@ -358,6 +360,12 @@ class ApexerRebuildTest(unittest.TestCase): self.assertEqual(get_sha1sum(unsigned_payload_only_file_path), get_sha1sum(unsigned_payload_only_2_file_path)) + def test_apex_with_logging_parent(self): + self._run_build_test(TEST_APEX_WITH_LOGGING_PARENT) + + def test_apex_with_overridden_package_name(self): + self._run_build_test(TEST_APEX_WITH_OVERRIDDEN_PACKAGE_NAME) + if __name__ == '__main__': unittest.main(verbosity=2) |