CTS Verifier: Fix any old test_peripheral fields.

If tests were run with the old versions of CTS-V
then the JSON file might contain test_peripheral fields
with String values. That would break database ingestion.

If found, force them to zero integer.

Bug: 245751695
Bug: 296123121
Test: install CTS Verifier
Test: run loopback test
Test: save report
Test: adb pull /sdcard/verifierReports
Test: check JSON file, see b/296123121

// Prevent merging into UDC or main where this fix is not needed.
// We cannot use the ID from ag/20951548 because that ID is also
// in aosp/2708829, which is here in TM.
// aosp/2708829 prevents new damage. This CL fixes old damage.
Merged-In: Idc30355ccc2c81abb1ad54d197bc815624f28de0

Change-Id: I71991c735f0a91b007a6808ea272e4c77c36b53c
1 file changed