Skip to content

Commit

Permalink
test(benchmark): skip checking completion time in hot processing
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 19, 2019
1 parent 91e5c32 commit 6a18016
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ LOG_TABLE () {
total_time=$(_SUBSTRUCTION $time_database_saved $time_begin | xargs -0 printf "%.0f")
line_number=$(wc -l build.log | cut -d" " -f1)

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

if [ $total_time -gt 40 ]; then
Expand Down

0 comments on commit 6a18016

Please sign in to comment.