Skip to content
Snippets Groups Projects
Unverified Commit 5282e871 authored by maomao's avatar maomao Committed by GitHub
Browse files

Update ci.yml (#2804)

add error case print
parent aeb4015c
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,6 @@ jobs:
mv log base-log
mv report base-report
if [ ${{ steps.bvt_on_base.outcome }} == 'success' ]; then echo 'Base sha passed all bvt cases. Pls check head version'; exit 1; fi
if [ "$(cat ./base-report/success.txt | wc -l )" -gt "$(cat ./head-report/success.txt | wc -l)" ]; then echo 'Base sha passed more bvt cases. Pls check head version'; exit 2; fi
cat ./base-report/success.txt ./head-report/success.txt ./head-report/success.txt | grep -v '^$' | sort > cmp.txt
echo '--------Cases only passed in base----------'
uniq -u cmp.txt
......@@ -272,7 +271,6 @@ jobs:
mv log base-log
mv report base-report
if [ ${{ steps.bvt_on_base.outcome }} == 'success' ]; then echo 'Base sha passed all bvt cases. Pls check head version'; exit 1; fi
if [ "$(cat ./base-report/success.txt | wc -l )" -gt "$(cat ./head-report/success.txt | wc -l)" ]; then echo 'Base sha passed more bvt cases. Pls check head version'; exit 2; fi
cat ./base-report/success.txt ./head-report/success.txt ./head-report/success.txt | sort > cmp.txt
echo '--------Cases only passed in base----------'
uniq -u cmp.txt
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment