Optionally overwrite package value in test config.

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
This commit is contained in:
Jaewoong Jung
2019-11-22 14:34:55 -08:00
parent 126c57b52d
commit e5cd4e10a0
5 changed files with 210 additions and 1 deletions

View File

@@ -85,3 +85,39 @@ python_binary_host {
},
}
}
python_binary_host {
name: "test_config_fixer",
main: "test_config_fixer.py",
srcs: [
"test_config_fixer.py",
"manifest.py",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: false,
},
},
}
python_test_host {
name: "test_config_fixer_test",
main: "test_config_fixer_test.py",
srcs: [
"test_config_fixer_test.py",
"test_config_fixer.py",
"manifest.py",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: false,
},
},
test_suites: ["general-tests"],
}