blob: cb68f3a18be63b4fa5f5065e4823ab879c462f8e [file] [log] [blame]
The script can be used to parse test metrics json files. Run the following
command to see a demo:
python CtsCameraTestCases.reportlog.json
To parse multiple files, list all files as arguments. Try the following:
python CtsCameraTestCases.reportlog.json CtsUiHostTestCases.reportlog.json
python *.json
Test metrics json files can be found in $CTS_ROOT/repository/results/$RESULT_DIR/report-log-files/
The MetricsParser class defines functions to parse a json file. The _Parse function takes a filename
as input, reads the json file and adds the json object to json_data. The _PrintJson function
takes the filename and corresponding json_data and prints out the streams as key, value pairs.