aboutsummaryrefslogtreecommitdiff
path: root/scripts/test_config_fixer.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow android tests to specify a mainline package nameSeth Moore2023-02-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | Tests that run against mainline modules generally need to be built twice: once for aosp (unsigned) and once for internal (signed). The override_android_test rule is really useful for generating a signed version of the unsigned test. However, mainline tests need to use a MainlineTestModuleController to only run tests on targets with the expected module. Since unsigned and signed mainline modules have different package names, this means the test config needs to be updated when overriding a test. Add a new "mainline_package_name" argument so that android test rules can update the targeted mainline package. Without this, the only way to create a mainline package test is to instead use android_test, which results in a lot of copy-pasta. Test: added tests to soong Test: manual, using a locally-modified RkpdAppUnitTest Test: test_config_fixer_test.py Change-Id: Idaffd63f225719a2bfda41018fda630b17db0080
* Updates test_config_fixer to also work for SuiteApkInstallerRahul Sabnis2022-04-201-1/+3
| | | | | | | Bug: 228385580 Test: atest BluetoothInstrumentationTests Merged-In: I878309354c4aa5a492fb3d2bcecf8b1410e011ee Change-Id: I878309354c4aa5a492fb3d2bcecf8b1410e011ee
* Convert soong scripts to python 3Cole Faust2021-11-101-1/+1
| | | | | | | | | | | | | | | | Except manifest_utils, which is used by apexer. Tests run: m construct_context_test manifest_check_test manifest_fixer_test test_config_fixer_test out/host/linux-x86/testcases/construct_context_test/x86_64/construct_context_test out/host/linux-x86/testcases/manifest_check_test/x86_64/manifest_check_test out/host/linux-x86/testcases/manifest_fixer_test/x86_64/manifest_fixer_test out/host/linux-x86/testcases/test_config_fixer_test/x86_64/test_config_fixer_test Bug: 203436762 Test: Tests listed above + presubmits Change-Id: Ife75b3af1efc871a2d8521d26153a262573bb706
* Overwrite test-file-name in test config.Jaewoong Jung2020-01-171-1/+17
| | | | | | | | | If the install apk name is different than the module name, use test_config_fixer to update the test-file-name value in the config. Test: app_test.go Fixes: 147375216 Change-Id: I2141eeebbb3552995400b45634712306673fd812
* Optionally overwrite package value in test config.Jaewoong Jung2019-12-051-0/+82
If package_name is set for an android_test module, package names in its AndroidTest.xml config need to be updated too. Test: test_config_fixer_test.py Fixes: 145011263 Change-Id: I52f17ef1d1902364b9bcfec4f6e246bd655dbf09