Add zero-padding to iteration numbers in result filenames#50
Add zero-padding to iteration numbers in result filenames#50sayalibhavsar merged 1 commit intomainfrom
Conversation
Expected Results Summary
|
|
sbhavsar@sbhavsar-thinkpadp16vgen1:~/coremark_pro-wrapper$ format_iteration_number() { local iter=$1; local total=$2; if [ $total -lt 10 ]; then echo echo "Test 1: $(format_iteration_number 5 150) (expected: 005)" Test 1: 005 (expected: 005) the function works correctly. quick sanity check to verify the zero-padding logic is working as expected |
Description
Adds zero-padding to CoreMark-PRO iteration result filenames to ensure proper numerical sorting when running 10 or more iterations.
Before/After Comparison
Before: Files sorted as run_1, run_10, run_11, ..., run_2, run_3 (lexicographic order).
After: Files sorted as run_01, run_02, ..., run_10, run_11, run_12 (numerical order with minimal zero-padding).
Clerical Stuff
This closes #37
Relates to JIRA: RPOPC-287