diff options
| author | 2024-01-24 14:10:17 +0800 | |
|---|---|---|
| committer | 2024-01-25 11:21:00 +0800 | |
| commit | a4d5f4380b96b840c69cef72950aad4df2bc6a16 (patch) | |
| tree | aaf0c88fa36711851e4e680d449560cf5478ddc8 /tools/releasetools/test_common.py | |
| parent | b14bf5f6e98d2f5edce68be59359419b6ba2c732 (diff) | |
Re-land: releasetools: Deprecate GKI build rules
(Re-land of Ie882fccd864920289e48366e99a4ebd67e784d0d)
We no longer build GKIs from the platform tree.
These build commands were neither used nor maintained anymore, so clean
them up to reduce maintenance effort.
Keep the command line options as no-op, so existing scripts that still
specifies the deprecated options don't break.
Bug: 229701033
Test: presubmit
Change-Id: I0f7d05562dbc3eed29e902d6dc9a0f2e4083aaa6
Diffstat (limited to 'tools/releasetools/test_common.py')
| -rw-r--r-- | tools/releasetools/test_common.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/releasetools/test_common.py b/tools/releasetools/test_common.py index 9b2e66791d..2989338fe8 100644 --- a/tools/releasetools/test_common.py +++ b/tools/releasetools/test_common.py @@ -1605,40 +1605,6 @@ class CommonUtilsTest(test_utils.ReleaseToolsTestCase): self.assertEqual(3, chained_partition_args.rollback_index_location) self.assertTrue(os.path.exists(chained_partition_args.pubkey_path)) - def test_GenerateGkiCertificate_KeyPathNotFound(self): - pubkey = os.path.join(self.testdata_dir, 'no_testkey_gki.pem') - self.assertFalse(os.path.exists(pubkey)) - - common.OPTIONS.info_dict = { - 'gki_signing_key_path': pubkey, - 'gki_signing_algorithm': 'SHA256_RSA4096', - 'gki_signing_signature_args': '--prop foo:bar', - } - common.OPTIONS.search_path = None - test_file = tempfile.NamedTemporaryFile() - self.assertRaises(common.ExternalError, common._GenerateGkiCertificate, - test_file.name, 'generic_kernel') - - def test_GenerateGkiCertificate_SearchKeyPathNotFound(self): - pubkey = 'no_testkey_gki.pem' - self.assertFalse(os.path.exists(pubkey)) - - # Tests it should raise ExternalError if no key found under - # OPTIONS.search_path. - search_path_dir = common.MakeTempDir() - search_pubkey = os.path.join(search_path_dir, pubkey) - self.assertFalse(os.path.exists(search_pubkey)) - - common.OPTIONS.search_path = search_path_dir - common.OPTIONS.info_dict = { - 'gki_signing_key_path': pubkey, - 'gki_signing_algorithm': 'SHA256_RSA4096', - 'gki_signing_signature_args': '--prop foo:bar', - } - test_file = tempfile.NamedTemporaryFile() - self.assertRaises(common.ExternalError, common._GenerateGkiCertificate, - test_file.name, 'generic_kernel') - class InstallRecoveryScriptFormatTest(test_utils.ReleaseToolsTestCase): """Checks the format of install-recovery.sh. |