Skip to content

Commit

Permalink
ci(benchmark): update error msg on fail build (#3932)
Browse files Browse the repository at this point in the history
- show only 400 lines of log on a potential failed build
- use single quote to escape !! in shell
  • Loading branch information
SukkaW authored Dec 12, 2019
1 parent 23996dc commit e4a5292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ LOG_TABLE () {

if [ $total_time -lt 10 ] || ([ $line_number -lt 300 ] && [ $1 != "HOT" ]); then
echo "--------------------------------------------"
echo -e "\033[41;37m !! Build failed !! \033[0m"
cat build.log
echo -e '\033[41;37m !! Build failed !! \033[0m'
head -n 400 build.log
exit 1
fi

if [ $total_time -gt 40 ]; then
echo "--------------------------------------------"
echo -e "\033[41;37m !! Performance regression detected !! \033[0m"
echo -e '\033[41;37m !! Performance regression detected !! \033[0m'
exit 1
fi
}
Expand Down

0 comments on commit e4a5292

Please sign in to comment.