Skip to content

Commit

Permalink
for summary format
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Oct 19, 2022
1 parent 61d2157 commit 9811909
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pr_testing/run-pr-comparisons
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ function nano_summary(){
for wf in $(ls -d *-size.json | sed 's|-size.json||') ; do
ok_wf=true
for f in ${wf}-timing.json ref/${wf}-size.json ref/${wf}-size.json ; do
if [ ! -e $f ] ; then echo " - Nano ERROR: Missing $f" >> NANO_report.md ; ok_wf=false ; fi
if [ ! -e $f ] ; then echo " - Nano ERROR: Missing $f" >> NANO_report.md ; ok_wf=false ; fi
done
$ok_wf && WFS="${WFS} ${wf}"
done
if [ "${WFS}" != "" ] ; then
${NANO_TEST_DIR}/compare_sizes_json.py -H -f md --base "{}-size.json,{}-timing.json" --ref "./ref" ${WFS} >> NANO_report.md
else
echo " - No valid nano workflows found" >> NANO_report.md
echo " - No valid nano workflows found" >> NANO_report.md
fi
popd
}
Expand Down Expand Up @@ -470,7 +470,7 @@ if [ "${TEST_FLAVOR}" != "" ] ; then
sed -i -e "s|## Comparison Summary|## ${UC_TEST_FLAVOR} Comparison Summary|" $WORKSPACE/testsResults/20-comparison-report.res
mv $WORKSPACE/testsResults/20-comparison-report.res $WORKSPACE/testsResults/20-${TEST_FLAVOR}-comparison-report.res
if [ -e $WORKSPACE/upload/nano/NANO_report.md ] ; then
echo "- Nano Size comparison results" >> $WORKSPACE/testsResults/20-${TEST_FLAVOR}-comparison-report.res
echo " - Nano Size comparison results" >> $WORKSPACE/testsResults/20-${TEST_FLAVOR}-comparison-report.res
echo "" >> $WORKSPACE/testsResults/20-${TEST_FLAVOR}-comparison-report.res
cat $WORKSPACE/upload/nano/NANO_report.md >> $WORKSPACE/testsResults/20-${TEST_FLAVOR}-comparison-report.res
echo "" >> $WORKSPACE/testsResults/20-${TEST_FLAVOR}-comparison-report.res
Expand Down

0 comments on commit 9811909

Please sign in to comment.