Sort Rust TEST_MAPPING tests.
We currently seem to emit TEST_MAPPING files in an arbitrary order, which causes diffs to look confusing even when nothing has changed. Let's sort them by the test name, which is both stable and easier to read. Test: Run cargo2android multiple times and see no TEST_MAPPING diff. Change-Id: I398aa84a4891380e4292223445bd53959c024421
This commit is contained in:
@@ -152,6 +152,7 @@ class TestMapping(object):
|
||||
test_mapping["presubmit"].append({"name": test, "options": test_options[test]})
|
||||
else:
|
||||
test_mapping["presubmit"].append({"name": test})
|
||||
test_mapping["presubmit"] = sorted(test_mapping["presubmit"], key=lambda t: t["name"])
|
||||
return test_mapping
|
||||
|
||||
def write_test_mapping(self, test_mapping):
|
||||
|
||||
Reference in New Issue
Block a user