Skip to content

Commit 5c8944f

Browse files
committed
Feat(verify): Add steps to convert CSV to JSON and validate results
This adds calls to test_tools-wrapper to convert the CSV results file to JSON and then read that JSON file to verify it matches the provided schema Co-developed-by: Cursor
1 parent c2072ea commit 5c8944f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyperf/pyperf_run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ if [ $to_pbench -eq 0 ]; then
323323
fi
324324

325325
generate_csv_file ${pyresults}
326+
$TOOLS_BIN/csv_to_json $to_json_flags --csv_file ${pyresults}.csv --output_file ${pyresults}.json
327+
$TOOLS_BIN/verify_results $to_verify_flags --file ${pyresults}.json --schema_file $to_script_dir/../result_schema.py --class_name PyperfResult
326328
else
327329
source ~/.bashrc
328330
arguments="${arguments} --test_iterations ${to_times_to_run}"

0 commit comments

Comments
 (0)