commit | 9f9c0072e25656b0dde1662a8681aca8a93ffc29 | [log] [tgz] |
---|---|---|
author | Roland Levillain <rpl@google.com> | Wed Feb 17 12:26:21 2021 +0000 |
committer | Roland Levillain <rpl@google.com> | Thu Feb 18 12:15:12 2021 +0000 |
tree | 3c1d51f76c05914960e352cc763737c74b96f205 | |
parent | eb348cdca67f777185b91ba60d7ae6ecbbc51464 [diff] |
Use Python's `json` to generate `TEST_MAPPING` in `regen-test-files`. This greatly simplifies the implementation of `Generator.regen_test_mapping_file`, but removes the ability to insert comments in the middle of the JSON output. Test: Run `test/utils/regen-test-files` and check the resulting `TEST_MAPPING` and `Android.bp` files are the same, except for comments in the middle of `TEST_MAPPING`. Bug: 152374989 Change-Id: Ifd5e60134ed8ddf00b305f819f6954d5570273cb